ci: publish images to Docker Hub using OIDC

Replace the long-lived DOCKERPUBLICBOT PAT with short-lived tokens
minted through the Docker Hub OIDC connection, using the
registry-identities input of the github-builder bake workflow.

The connection rulesets cover both triggers of this workflow
(refs/heads/main and refs/tags/v*) for compose-bin and
compose-desktop-module.

Signed-off-by: Guillaume Lours <[email protected]>
This commit is contained in:
Guillaume Lours
2026-08-03 11:08:09 +02:00
committed by Guillaume Lours
parent 2fa7a294ab
commit ea82c55224
+8 -10
View File
@@ -48,11 +48,10 @@ jobs:
type=ref,event=tag
type=edge
meta-bake-target: meta-helper
secrets:
registry-auths: |
- registry: docker.io
username: ${{ secrets.DOCKERPUBLICBOT_USERNAME }}
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
registry-identities: |
- type: dockerhub
username: docker
connection_id: a295c8b7-54ab-4507-ac88-5c43003c73a5
module-image:
uses: docker/github-builder/.github/workflows/bake.yml@27ade872c1e2296e62ef15ab3b10d37665e57cf7 # v1.15.0
@@ -74,10 +73,9 @@ jobs:
type=ref,event=branch
type=ref,event=tag
meta-bake-target: meta-helper
secrets:
registry-auths: |
- registry: docker.io
username: ${{ secrets.DOCKERPUBLICBOT_USERNAME }}
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
registry-identities: |
- type: dockerhub
username: docker
connection_id: a295c8b7-54ab-4507-ac88-5c43003c73a5