Skip to content

Commit

Permalink
ci, gha: Add a fallback 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 network timeouts.
  • Loading branch information
hebasto committed Aug 18, 2023
1 parent 6617a62 commit 1eb6fb9
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: fallback_builder
if: steps.main_builder.outcome == 'failure'
with:
context: .
file: ${{ inputs.dockerfile }}
Expand Down

0 comments on commit 1eb6fb9

Please sign in to comment.