ci, gha: Add retry_builder
Docker image builder
This change is aimed at significantly reducing the frequency of failures caused by intermittent network timeouts.
This commit is contained in:
parent
6617a620d9
commit
4ad4914bd1
12
.github/actions/run-in-docker-action/action.yml
vendored
12
.github/actions/run-in-docker-action/action.yml
vendored
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user