Questions tagged [google-artifact-registry]
183 questions
20
votes
2 answers
Google Cloud: Artifact Registry vs Container Registry
What's the difference between these two products?
Artifact Registry - https://cloud.google.com/artifact-registry/
Container Registry - https://cloud.google.com/container-registry/

Dustin Ingram
- 20,502
- 7
- 59
- 82
13
votes
4 answers
Permission artifactregistry.repositories.uploadArtifacts denied on resource using github actions
I am trying to push docker container to Artifact Registry on GCP but I got an error on step Push Docker Image to Artifact Registry
denied: Permission "artifactregistry.repositories.uploadArtifacts"
denied on…

Nikhil kumar
- 191
- 1
- 3
- 13
12
votes
4 answers
GCP: How to prune/maintain Artifact Registry storage?
We've started to use Google Cloud Platform's Artifact Registry where pricing is pr. GB pr. month.
But how can I see how much storage is being used and by what?
It also looks like all pushed images are saved forever by default. So for each build, the…

Peter V. Mørch
- 13,830
- 8
- 69
- 103
11
votes
3 answers
Is there currently any way to mirror an official maven repo using Artifact Registry?
I'm evaluating using Google Artifact Registry as a replacement for Nexus, and one thing that I have been unable to find in the documentation is if it is possible to mirror or proxy an official repository, for instance mavenCentral (like suggested on…

still0r
- 113
- 7
10
votes
3 answers
Working Poetry project with private dependencies inside Docker
I have a Python library hosted in Google Cloud Platform Artifact Registry. Besides, I have a Python project, using Poetry, that depends on the library.
This is my project file pyproject.toml:
[tool.poetry]
name = "Test"
version = "0.0.1"
description…

logoff
- 3,347
- 5
- 41
- 58
10
votes
1 answer
Google Cloud Artifact Registry for Gradle plugins
I have successfully published to Artifact Registry, and I can use artifacts from there in "normal" use: dependencies { implementation("mygroup:myartifact:myversion") }.
My issue is plugins. I have created a plugin. I can successfully publish it to…

Luis
- 171
- 1
- 8
8
votes
2 answers
Inject Google Artifact Registry credentials to Docker build
We have a Google Artifact Registry for our Python packages. Authentication works like this. Locally it works well.
However, how do I pass credentials to Docker build when I want to build a Docker image that needs to install a package from our…

Peter
- 1,658
- 17
- 23
7
votes
2 answers
Docker push "Missing image name"-error when pushing to GCP Artifact Registry from Github Actions
I am running the google-github-actions/deploy-cloudrun Action on Github, which fails when trying to push a docker image to Artifact Registry.
I authenticate through an identity pool
The docker image builds successfully
However, pushing the image to…

Michael Brenndoerfer
- 3,483
- 2
- 39
- 50
6
votes
2 answers
How to fix 404 error when installing npm package from GCP artifact registry with yarn?
I'm having an issue with installing an NPM package from GCP.
I was able to upload the package to the artifact registry of GCP by doing the following steps:
Login to my google account (gcloud auth application-default login)
Run
gcloud artifacts…

Ori Netanel Ben-Zaken
- 347
- 2
- 13
6
votes
2 answers
Is it possible track the number of docker pulls in Google Artifact Registry?
I'd like to measure the number of times a Docker image has been downloaded from a Google Artifact registry repository in my GCP project.
Is this possible?

Natan Yellin
- 6,063
- 5
- 38
- 57
6
votes
3 answers
GCP - Cloud Function can't find Python package from Artifact Registry in the same project
I've been trying GCP's Artifact Registry, which is currently in alpha for Python packages.
I do the authentication via Keyring along with my service account, as explained in the documentation.
I can successfully upload a package using Twine, and I…

afs35
- 359
- 1
- 2
- 14
5
votes
2 answers
How to copy artifacts between projects in Google Artifact Registry
Previously using Container Registry one could copy a container between projects using this method
However I am unable to get this working using Artifact Registry. If I try
gcloud artifacts docker tags add \
…

rossco
- 593
- 12
- 22
5
votes
1 answer
Keyring authentication to Artifact Repository not working (GCP)
In order to set up keyring authentication to a private pip repository, I followed the steps on Setting up authentication to Python package repositories - Authenticating with keyring.
I chose to use an environment variable for the authentication. I…

Stéphane
- 105
- 1
- 9
5
votes
2 answers
Cannot publish Python artifact with Poetry to Google Artifact Registry because "HTTP Error 413: Request Entity Too Large"
I'm a quite new on Poetry usage. My need is just to push my Python library on my personal Google Artifact Registry.
After launching those commands :
poetry config virtualenvs.create false
poetry config $repoName…

Data minion
- 49
- 1
- 3
5
votes
1 answer
How to pass authenticated state from the cloud builder to docker?
I would like to use Google Cloud Build to build my docker images. These docker images use private packages that are downloaded from Google Artifact Registry.
The builder itself is authenticated and can use the npx google-artifactregistry-auth…

Algirdyz
- 607
- 6
- 16