Skip to content

Commit

Permalink
Explicitly specify GCP project when invalidate cache
Browse files Browse the repository at this point in the history
By default `gcloud` uses the `crl-teamcity-agents` project on our
TeamCity agents.

Part of: RE-359
  • Loading branch information
rail committed Jan 9, 2024
1 parent 03252fe commit ee52b97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

0 comments on commit ee52b97

Please sign in to comment.