Merge pull request 'Retry image builds once after a GHCR 429' (#17) from ci-retry-ghcr into main
Reviewed-on: #17 Reviewed-by: branderson <brad@branderson.io>
This commit was merged in pull request #17.
This commit is contained in:
@@ -78,7 +78,28 @@ jobs:
|
|||||||
images: ${{ steps.registry.outputs.host }}/${{ steps.registry.outputs.owner }}/${{ matrix.image }}
|
images: ${{ steps.registry.outputs.host }}/${{ steps.registry.outputs.owner }}/${{ matrix.image }}
|
||||||
tags: type=raw,value=latest
|
tags: type=raw,value=latest
|
||||||
|
|
||||||
- uses: docker/build-push-action@v6
|
# GHCR sometimes answers the streamer's base image pull with 429 Too Many
|
||||||
|
# Requests; it clears within minutes, so retry once.
|
||||||
|
- id: build
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
context: ${{ matrix.context }}
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
platforms: linux/amd64
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ steps.version.outputs.sha }}
|
||||||
|
provenance: false
|
||||||
|
|
||||||
|
- name: Wait before retrying
|
||||||
|
if: steps.build.outcome == 'failure'
|
||||||
|
run: sleep 120
|
||||||
|
|
||||||
|
- name: Retry the build
|
||||||
|
if: steps.build.outcome == 'failure'
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ${{ matrix.context }}
|
context: ${{ matrix.context }}
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
@@ -58,7 +58,28 @@ jobs:
|
|||||||
images: ghcr.io/${{ steps.owner.outputs.name }}/${{ matrix.image }}
|
images: ghcr.io/${{ steps.owner.outputs.name }}/${{ matrix.image }}
|
||||||
tags: type=raw,value=latest
|
tags: type=raw,value=latest
|
||||||
|
|
||||||
- uses: docker/build-push-action@v6
|
# GHCR sometimes answers the streamer's base image pull with 429 Too Many
|
||||||
|
# Requests; it clears within minutes, so retry once.
|
||||||
|
- id: build
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
context: ${{ matrix.context }}
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
platforms: linux/amd64
|
||||||
|
build-args: |
|
||||||
|
VERSION=${{ steps.version.outputs.sha }}
|
||||||
|
provenance: false
|
||||||
|
|
||||||
|
- name: Wait before retrying
|
||||||
|
if: steps.build.outcome == 'failure'
|
||||||
|
run: sleep 120
|
||||||
|
|
||||||
|
- name: Retry the build
|
||||||
|
if: steps.build.outcome == 'failure'
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ${{ matrix.context }}
|
context: ${{ matrix.context }}
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
Reference in New Issue
Block a user