When deploying a docker container image to Cloud Run, I can choose a region, which is fine. Cloud Run delegates the build to Cloud Build, which apparently creates two bucke
Looks like this is only possible by doing what you're mentioning in the comments:
us-east1
as the source bucket ($SOURCE_BUCKET
);us-east1
;cloudbuild.yaml
:
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'us-east1-docker.pkg.dev/$PROJECT_ID/my-repo/my-image', '.']
images:
- 'us-east1-docker.pkg.dev/$PROJECT_ID/my-repo/my-image'
$ gcloud builds submit --config cloudbuild.yaml --gcs-source-staging-dir=gs://$SOURCE_BUCKET/source
More details here: https://cloud.google.com/artifact-registry/docs/configure-cloud-build
I think it should at least be possible to specify the Artifact Registry repo with the --tag
option and have it be automatically created, but it currently rejects any domain that isn't gcr.io
outright.