From c63f03cc730cb0693185e730e9e04f8a284cc842 Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Wed, 12 Aug 2026 11:19:45 -0400 Subject: [PATCH] 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 --- .github/workflows/docker.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 564cd74e9..4ce81e1e6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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