From ee52b97bf3976c107fcd4050c50ae7f8f21a4e42 Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Tue, 9 Jan 2024 14:05:15 -0500 Subject: [PATCH] Explicitly specify GCP project when invalidate cache By default `gcloud` uses the `crl-teamcity-agents` project on our TeamCity agents. Part of: RE-359 --- build/release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/release.sh b/build/release.sh index edd5149c..57713f9a 100755 --- a/build/release.sh +++ b/build/release.sh @@ -8,11 +8,13 @@ case $charts_hostname in lb_name=cockroach-helm-charts-prod-default gcs_bucket=cockroach-helm-charts-prod google_credentials="$GCS_CREDENTIALS_PROD" + google_project=releases-prod ;; charts-test.cockroachdb.com) lb_name=cockroach-helm-charts-test-default gcs_bucket=cockroach-helm-charts-test google_credentials="$GCS_CREDENTIALS_PROD" + google_project=releases-prod ;; *) echo "uknown host $charts_hostname" @@ -34,4 +36,4 @@ gcloud auth activate-service-account --key-file=.google-credentials.json gsutil rsync -x old-index.yaml "build/artifacts/" "gs://${gcs_bucket}/" # Invalidate any cached version of index.yaml (so this version is immediately available) -gcloud compute url-maps invalidate-cdn-cache $lb_name --path "/index.yaml" +gcloud --project $google_project compute url-maps invalidate-cdn-cache $lb_name --path "/index.yaml"