Skip to content

Commit 4ad4914

Browse files
committed
ci, gha: Add retry_builder Docker image builder
This change is aimed at significantly reducing the frequency of failures caused by intermittent network timeouts.
1 parent 6617a62 commit 4ad4914

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/actions/run-in-docker-action/action.yml

+12
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ runs:
2020
network=host
2121
2222
- uses: docker/build-push-action@v4
23+
id: main_builder
24+
continue-on-error: true
25+
with:
26+
context: .
27+
file: ${{ inputs.dockerfile }}
28+
tags: ${{ inputs.tag }}
29+
load: true
30+
cache-from: type=gha
31+
32+
- uses: docker/build-push-action@v4
33+
id: retry_builder
34+
if: steps.main_builder.outcome == 'failure'
2335
with:
2436
context: .
2537
file: ${{ inputs.dockerfile }}

0 commit comments

Comments
 (0)