From e6418aa3c5b901b4b44c7c4b4235ea2b83f7c072 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 20 Nov 2026 14:47:01 -0500 Subject: [PATCH] ci: keep the Docker Hub OIDC token valid until the image push The Docker Hub token from docker/login-action's OIDC exchange lasts 300 seconds by default. The multi-arch build takes about 10 minutes and pushes at the end, so the v4.146.0 push failed with 401 incorrect username or password. Ask for an hour, as coder/coder's dogfood.yaml does. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 57705d0375e4..a5a4841d9742 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -214,6 +214,9 @@ jobs: username: codercom env: DOCKERHUB_OIDC_CONNECTIONID: ${{ vars.DOCKERHUB_OIDC_CONNECTIONID }} + # The Docker Hub token defaults to 5 minutes, and the multi-arch build pushes at the end, + # after about 10. + DOCKERHUB_OIDC_EXPIREIN: "3600" - uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 with: registry: ghcr.io