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:
Hennadii Stepanov 2023-08-18 17:05:25 +01:00
parent 6617a620d9
commit 4ad4914bd1
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -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 }}