Skip to content

Commit

Permalink
chore(ci): add image pull with retry (#508)
Browse files Browse the repository at this point in the history
The addresses spurious failures of pulling our (very large) base images by pre-pulling them to the build runner before using the buildah action.

Relates: #502
  • Loading branch information
bsherman authored Feb 22, 2024
1 parent 4dda9bc commit 27f4c63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit 27f4c63

Please sign in to comment.