Closed fleroux514 closed 2 years ago
Thanks for the report @fleroux514
I believe you will still need to gcloud auth configure-docker northamerica-northeast1-docker.pkg.dev
for gcloud to configure docker config to use gcloud as a credentials helper.
Another alternative is to use the access_token from auth
directly, bypassing the need for gcloud. Something like ${{steps.auth.outputs.access_token}} | docker login -u oauth2accesstoken --password-stdin https://northamerica-northeast1-docker.pkg.dev
Thanks a lot @bharathkkb
gcloud auth configure-docker northamerica-northeast1-docker.pkg.dev
did it
TL;DR
Replaced the use of https://github.com/docker/login-action with the current action to authenticate to a Google Docker Artifact registry and I can't seem to push an image to it.
Proof that my service account has access to the registry:
Expected behavior
Able to push a docker image to Google Artifact Registry
Observed behavior
Getting the following error:
denied: Permission "artifactregistry.repositories.downloadArtifacts" denied on resource "projects/prj-d-perso-fleroux-4094/locations/northamerica-northeast1/repositories/fleroux-docker" (or it may not exist)
Action YAML
Additional information
No response