ci: retry transient push gateway registry login

Retry the pinned GHCR login action once so a brief registry denial does not fail an otherwise valid architecture build.

Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
Thomas Petersen
2026-08-12 11:19:45 -04:00
parent 82b63b9a7a
commit c63f03cc73
+9
View File
@@ -377,7 +377,16 @@ jobs:
[worker.oci]
max-parallelism = 2
- name: Log in to GHCR
id: ghcr-login
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
continue-on-error: true
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Retry GHCR login
if: steps.ghcr-login.outcome == 'failure'
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
registry: ghcr.io