Skip to content

Commit

Permalink
feat: leverage retry-action to increase reliability of builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmtaylor committed Feb 18, 2024
1 parent 58dc41a commit ae2f283
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,23 +174,29 @@ jobs:
# Build image using Buildah action
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@v2
uses: Wandalen/wretry.action@master
with:
containerfiles: |
./Containerfile
image: ${{ env.IMAGE_NAME }}
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
build-args: |
IMAGE_NAME=${{ matrix.image_name }}
SOURCE_ORG=${{ env.SOURCE_ORG }}
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
RPMFUSION_MIRROR=${{ vars.RPMFUSION_MIRROR }}
labels: ${{ steps.meta.outputs.labels }}
oci: false
extra-args: |
--target=${{ matrix.build_target }}
action: redhat-actions/buildah-build@v2
attempt_limit: 3
with: |
containerfiles: |
./Containerfile
image: |
${{ env.IMAGE_NAME }}
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
build-args: |
IMAGE_NAME=${{ matrix.image_name }}
SOURCE_ORG=${{ env.SOURCE_ORG }}
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
RPMFUSION_MIRROR=${{ vars.RPMFUSION_MIRROR }}
labels: |
${{ steps.meta.outputs.labels }}
oci: |
false
extra-args: |
--target=${{ matrix.build_target }}
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
Expand Down Expand Up @@ -254,4 +260,4 @@ jobs:
run: exit 1
- name: Exit
shell: bash
run: exit 0
run: exit 0

0 comments on commit ae2f283

Please sign in to comment.