Skip to content

Use gcloud for authenticating to AR's *-docker.pkg.dev #7063

@briandealwis

Description

@briandealwis

Skaffold has special case logic to try to use GGCR's gcloud-based authenticator for gcr.io and *.gcr.io. We should also do this for *-docker.pkg.dev. This will simplify life for Cloud Deploy users. (edit: this will only affect docker builds that use the docker daemon 😢 )

// 3. Try gcloud for *.gcr.io
if registry == "gcr.io" || strings.HasSuffix(registry, ".gcr.io") {
if auth, err := google.NewGcloudAuthenticator(); err == nil {
return auth
}
}

This is similar to what GGCR does already for the google keychain.

(Perhaps we can just use this google keychain?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions