Skip to content

build/bake: support GCP WIF registry identities - #244

Merged
crazy-max merged 1 commit into
docker:mainfrom
crazy-max:identities-gcp
Jul 24, 2026
Merged

crazy-max merged 1 commit into
docker:mainfrom
crazy-max:identities-gcp

Conversation

@crazy-max

@crazy-max crazy-max commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

fixes #146
needs #243

This adds Google Artifact Registry support to the registry-identities flow introduced in #243.

The shared registry identity parser now accepts type: gcp-wif with a registry host, Workload Identity Provider, service account, and project ID. The reusable build.yml and bake.yml workflows use google-github-actions/auth to request an access token in the same job that needs registry access, then pass that token directly to docker/login-action with the oauth2accesstoken username.

This lets callers push to Google Artifact Registry through GitHub OIDC and GCP Workload Identity Federation without storing long-lived registry credentials. The access token is not passed through reusable workflow outputs or caller secrets, and provider-specific authentication remains pinned and controlled inside GitHub Builder.

@crazy-max
crazy-max requested a review from tonistiigi July 6, 2026 14:32
@crazy-max
crazy-max force-pushed the identities-gcp branch 2 times, most recently from 0200bc8 to 17abd8a Compare July 23, 2026 14:29
@crazy-max
crazy-max marked this pull request as ready for review July 23, 2026 14:30
@crazy-max
crazy-max requested a review from a team as a code owner July 23, 2026 14:30
@crazy-max
crazy-max force-pushed the identities-gcp branch 2 times, most recently from 52bdf65 to 3cc39de Compare July 23, 2026 14:54
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max merged commit 00af29c into docker:main Jul 24, 2026
210 checks passed
@crazy-max
crazy-max deleted the identities-gcp branch July 24, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant