deploy: frontend deploy updates
- Add region to update-traffic command
- Run warmups post frontend deploy
Change-Id: I5b8d458ec8db54e72d0c78bfe267d388deff8312
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/367595
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/deploy/frontend.sh b/deploy/frontend.sh
index aa0c275..b938254 100755
--- a/deploy/frontend.sh
+++ b/deploy/frontend.sh
@@ -28,11 +28,12 @@
# If there was a rollback, `gcloud run deploy` will create a revision but
# not point traffic to it. The following command ensures that the new revision
# will get traffic.
- gcloud run services update-traffic $env-frontend --to-latest
+ gcloud run services update-traffic $env-frontend --to-latest --region us-central1
local tok=$(private/devtools/idtoken.sh $env)
local hdr="Authorization: Bearer $tok"
# Clear the redis cache
curl -H "$hdr" $(worker_url $env)/clear-cache
+ private/devtools/warmups.sh $env $tok
}
main $@