mirror of
https://github.com/docker/compose.git
synced 2026-11-18 22:27:03 +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 <glours@users.noreply.github.com>
This commit is contained in:
parent
2fa7a294ab
commit
ea82c55224
1 changed files with 8 additions and 10 deletions
18
.github/workflows/merge.yml
vendored
18
.github/workflows/merge.yml
vendored
|
|
@ -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
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue