mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
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:
committed by
Guillaume Lours
parent
2fa7a294ab
commit
ea82c55224
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user