mirror of
https://github.com/coder/code-server.git
synced 2026-11-25 12:39:15 +08:00
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:
1 parent
9cc1033c19
commit
65677d9f83
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user