GCP
Setting up a GCR registry
Enabling in-cluster building with GCR
# You can replace the gcr-access name of course, but make sure you also replace it in the commands below
gcloud iam service-accounts create gcr-access --project ${PROJECT_ID}# Create a role with the required permissions
gcloud iam roles create gcrAccess \
--project ${PROJECT_ID} \
--permissions=storage.objects.get,storage.objects.create,storage.objects.list,storage.objects.update,storage.objects.delete,storage.buckets.create,storage.buckets.get
# Attach the role to the newly create Google Service Account
gcloud projects add-iam-policy-binding ${PROJECT_ID} \
--member=serviceAccount:gcr-access@${PROJECT_ID}.iam.gserviceaccount.com \
--role=projects/${PROJECT_ID}/roles/gcrAccessEnabling in-cluster building with Google Artifact Registry
Last updated
Was this helpful?

