diff --git a/.github/install_latest_podman.sh b/.github/install_latest_podman.sh new file mode 100644 index 0000000..266cbff --- /dev/null +++ b/.github/install_latest_podman.sh @@ -0,0 +1,7 @@ + # https://podman.io/getting-started/installation +. /etc/os-release +echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list +curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add - +sudo apt-get update +sudo apt-get -y upgrade +sudo apt-get -y install podman diff --git a/.github/workflows/multiple-build.yaml b/.github/workflows/multiple-build.yaml index 3422ecf..538b04c 100644 --- a/.github/workflows/multiple-build.yaml +++ b/.github/workflows/multiple-build.yaml @@ -14,9 +14,21 @@ jobs: build-only-podman: name: Build and push image built only on Podman runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + install_latest: [ true, false ] steps: - - uses: actions/checkout@v2 + + # Checkout push-to-registry action github repository + - name: Checkout Push to Registry action + uses: actions/checkout@v2 + + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh - name: Build image using Podman run: | @@ -42,9 +54,21 @@ jobs: build-only-docker: name: Build and push image built only on Docker runs-on: ubuntu-18.04 + strategy: + fail-fast: false + matrix: + install_latest: [ true, false ] steps: - - uses: actions/checkout@v2 + + # Checkout push-to-registry action github repository + - name: Checkout Push to Registry action + uses: actions/checkout@v2 + + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh - name: Build image using Docker run: | @@ -70,9 +94,21 @@ jobs: build-podman-latest: name: Build and push image built latest on Podman runs-on: ubuntu-18.04 + strategy: + fail-fast: false + matrix: + install_latest: [ true, false ] steps: - - uses: actions/checkout@v2 + + # Checkout push-to-registry action github repository + - name: Checkout Push to Registry action + uses: actions/checkout@v2 + + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh - name: Build image using Docker run: | @@ -105,9 +141,21 @@ jobs: build-docker-latest: name: Build and push image built latest on Docker runs-on: ubuntu-18.04 + strategy: + fail-fast: false + matrix: + install_latest: [ true, false ] steps: - - uses: actions/checkout@v2 + + # Checkout push-to-registry action github repository + - name: Checkout Push to Registry action + uses: actions/checkout@v2 + + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh - name: Build image using Podman run: | diff --git a/.github/workflows/verify-login-push.yml b/.github/workflows/verify-login-push.yml index 6868dfe..7b8999e 100644 --- a/.github/workflows/verify-login-push.yml +++ b/.github/workflows/verify-login-push.yml @@ -17,12 +17,22 @@ jobs: login-and-push: name: Login and push image to Quay.io runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + install_latest: [ true, false ] + steps: # Checkout push-to-registry action github repository - name: Checkout Push to Registry action uses: actions/checkout@v2 + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh + - name: Create Dockerfile run: | cat > Dockerfile<