mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user