From d0c6b3cf9b4281c69babd30bb1fafb5821300597 Mon Sep 17 00:00:00 2001 From: diagrawa Date: Thu, 30 Sep 2021 11:13:18 +0530 Subject: [PATCH] Install latest podman in workflow Signed-off-by: diagrawa --- .github/install_latest_podman.sh | 7 +++++++ .github/workflows/example.yml | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/install_latest_podman.sh diff --git a/.github/install_latest_podman.sh b/.github/install_latest_podman.sh new file mode 100644 index 0000000..e1cc372 --- /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/example.yml b/.github/workflows/example.yml index 30de246..a95ef50 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -15,10 +15,20 @@ jobs: podman-pull: name: Log in and pull image with Podman runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + install_latest: [ true, false ] + steps: - uses: actions/checkout@v2 + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh + - name: Log in to quay.io uses: ./ with: @@ -36,6 +46,11 @@ jobs: - uses: actions/checkout@v2 + - name: Install latest podman + if: matrix.install_latest + run: | + bash .github/install_latest_podman.sh + - name: Log in to quay.io uses: ./ with: