From 25b812fda81b69f99777897c46b08450c2a15ee5 Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Wed, 21 Feb 2024 22:25:27 -0600 Subject: [PATCH] chore(ci): add image pull with retry --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43a53b2f..f495f3c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -174,6 +174,16 @@ jobs: io.artifacthub.package.readme-url=https://raw.githubusercontent.com/${{ github.repository }}/main/README.md io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4 + - name: Pull base image + uses: Wandalen/wretry.action@v1.4.4 + with: + attempt_limit: 3 + attempt_delay: 15000 + command: | + # pull the base image used for FROM in containerfile so + # we can retry on that unfortunately common failure case + podman pull quay.io/${{ env.SOURCE_ORG }}/${{ env.SOURCE_IMAGE }}:${{ matrix.major_version }} + # Build image using Buildah action - name: Build Image id: build_image