diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index a0eef7e66..79d978e61 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -9,6 +9,10 @@ on: types: - created +env: + OPENSUSE_UNOFFICIAL_LIBCONTAINERS_KEY_URL: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/Release.key" + OPENSUSE_UNOFFICIAL_LIBCONTAINERS_SOURCE_URL: "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04" + jobs: check-before-build: runs-on: ubuntu-latest @@ -85,6 +89,16 @@ jobs: java-version: '17' distribution: 'adopt' cache: maven + - name: Install podman v4 + run: | + echo "deb $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_SOURCE_URL/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list + curl -fsSL $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_KEY_URL | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_unstable.gpg > /dev/null + sudo apt -y purge podman + sudo apt update && sudo apt -y install podman + - name: Start Podman API + run: systemctl --user enable --now podman.socket + - name: Set DOCKER_HOST environment variable + run: echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV" - name: Build Cryostat application image id: build-cryostat-image run: | @@ -102,8 +116,6 @@ jobs: -Dquarkus.container-image.tag=pr-${{ env.PR_num }}-${{ env.head_sha }} \ clean package podman images - docker images - podman pull docker-daemon:ghcr.io/${{ github.repository_owner }}/cryostat-web:pr-${{ env.PR_num }}-${{ env.head_sha }} - name: Push PR test image to ghcr.io id: push-to-ghcr uses: redhat-actions/push-to-registry@v2