deploy: remove tokens from log output
Change-Id: Ic8adcba8022ac36d924755f42529a9a155ec268d
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/379139
Trust: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/deploy/frontend.sh b/deploy/frontend.sh
index ebc464c..20d04cc 100755
--- a/deploy/frontend.sh
+++ b/deploy/frontend.sh
@@ -30,13 +30,14 @@
runcmd 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
+ info "Clearing the redis cache."
if [[ $env == "beta" ]]; then
- runcmd curl -H "$hdr" $(worker_url prod)/clear-beta-cache
+ curl -H "$hdr" $(worker_url prod)/clear-beta-cache
else
- runcmd curl -H "$hdr" $(worker_url $env)/clear-cache
+ curl -H "$hdr" $(worker_url $env)/clear-cache
fi
- runcmd private/devtools/warmups.sh $env $tok
+ info "Running warmups."
+ private/devtools/warmups.sh $env $tok
}
main $@