Skip to content

Commit

Permalink
ci, gha: Add retry_builder Docker image builder
Browse files Browse the repository at this point in the history
This change is aimed at significantly reducing the frequency of failures
caused by intermittent network timeouts.
  • Loading branch information
hebasto committed Aug 18, 2023
1 parent 6617a62 commit 4ad4914
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/run-in-docker-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ runs:
network=host
- uses: docker/build-push-action@v4
id: main_builder
continue-on-error: true
with:
context: .
file: ${{ inputs.dockerfile }}
tags: ${{ inputs.tag }}
load: true
cache-from: type=gha

- uses: docker/build-push-action@v4
id: retry_builder
if: steps.main_builder.outcome == 'failure'
with:
context: .
file: ${{ inputs.dockerfile }}
Expand Down

0 comments on commit 4ad4914

Please sign in to comment.