diff --git a/.gitea/workflows/images.yml b/.gitea/workflows/images.yml index 3c1c8e0..dd7ee99 100644 --- a/.gitea/workflows/images.yml +++ b/.gitea/workflows/images.yml @@ -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 diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 6eb1235..e87b192 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -58,8 +58,8 @@ jobs: images: ghcr.io/${{ steps.owner.outputs.name }}/${{ matrix.image }} tags: type=raw,value=latest - # GHCR sometimes answers the base image pull with 429 Too Many Requests - # on GitHub's shared runners; it clears within minutes, so retry once. + # 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