Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
briandealwis opened this issue Jan 28, 2022 · 1 comment
Closed

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

briandealwis opened this issue Jan 28, 2022 · 1 comment

Comments

@briandealwis
Copy link
Member

briandealwis commented Jan 28, 2022

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?)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants