colossal-quill-8119
07/14/2023, 1:45 PMdocker:index:Image docker-image **creating failed** error: denied: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/my-project/locations/asia-south2/repositories/docker-registry"
billowy-army-68599
gcloud auth configure-docker
Can you share the code you currently have? It’s likely a case of needing to pass registry creds to the image you’re building via this https://www.pulumi.com/registry/packages/docker/api-docs/image/colossal-quill-8119
07/20/2023, 4:11 AMbillowy-army-68599
colossal-quill-8119
07/20/2023, 4:35 AMgcloud auth activate-service-account ACCOUNT --key-file=KEY-FILE
I need the location of the key filebillowy-army-68599
I thought setting up oidc in pulumi deployment already handled the auth partThis handles the auth to the gcloud api to create services. Docker authentication works differently which is outside of our control. In order to push to a docker registry, the local docker daemon needs to be authenticated, which is what
gcloud auth configure-docker <http://asia-south2-docker.pkg.dev|asia-south2-docker.pkg.dev>
To runI don’t have any insight into that I’m afraid. All I know right now is you’re using OIDC to auth, but I don’t have any sample code, or how you’ve authenticated. I can tell you that once you can runI need the location of the key filegcloud auth activate-service-account ACCOUNT --key-file=KEY-FILE
gcloud auth configure-docker <http://asia-south2-docker.pkg.dev|asia-south2-docker.pkg.dev>
your code will work, I don’t know how to get you therecolossal-quill-8119
07/20/2023, 4:46 AM