Compare commits

..
Author SHA1 Message Date
branderson a84ba7f6de Merge pull request 'Retry image builds once after a GHCR 429' (#17) from ci-retry-ghcr into main
Images / app (push) Successful in 4m56s
Images / session-manager (push) Successful in 1m49s
Images / streamer (push) Successful in 3m40s
Reviewed-on: #17
Reviewed-by: branderson <brad@branderson.io>
2026-10-15 21:29:32 -07:00
branderson d45aa8b603 ci: retry forge image builds once after a GHCR 429 too 2026-10-15 21:28:37 -07:00
branderson d54a44da1d ci: retry GitHub image builds once after a GHCR 429
The streamer's base image pull from ghcr.io intermittently gets 429 Too
Many Requests on GitHub's shared runners, failing the first attempt of
the last two runs; re-running minutes later succeeded both times.
2026-10-15 20:05:38 -07:00
branderson bf175b64a2 Merge pull request 'Retake screenshots on made-up demo data' (#16) from demo-screenshots into main
Images / app (push) Successful in 5m47s
Images / session-manager (push) Successful in 7m22s
Images / streamer (push) Failing after 1m14s
Reviewed-on: #16
Reviewed-by: branderson <brad@branderson.io>
2026-10-15 19:47:24 -07:00
2 changed files with 44 additions and 2 deletions
+22 -1
View File
@@ -78,7 +78,28 @@ jobs:
images: ${{ steps.registry.outputs.host }}/${{ steps.registry.outputs.owner }}/${{ matrix.image }}
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:
context: ${{ matrix.context }}
push: true
+22 -1
View File
@@ -58,7 +58,28 @@ jobs:
images: ghcr.io/${{ steps.owner.outputs.name }}/${{ matrix.image }}
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:
context: ${{ matrix.context }}
push: true