ci: keep the Docker Hub OIDC token valid until the image push (#8150)

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 <noreply@anthropic.com>
This commit is contained in:
Kyle CarberryandClaude Opus 5.5 authored and GitHub committed 2026-11-20 14:50:08 -05:00
1 parent 9cc1033c19
commit 65677d9f83
1 file changed
+3
+3
View File
@@ -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