deploy: clear beta cache via worker endpoint
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
@@ -31,12 +31,11 @@ main() {
local tok=$(private/devtools/idtoken.sh $env)
local hdr="Authorization: Bearer $tok"
# Clear the redis cache
- if [[ $env != "beta" ]]; then
- runcmd curl -H "$hdr" $(worker_url $env)/clear-cache
+ if [[ $env == "beta" ]]; then
+ runcmd curl -H "$hdr" $(worker_url prod)/clear-beta-cache
else
- # TODO: Clear the beta cache.
- fi
runcmd curl -H "$hdr" $(worker_url $env)/clear-cache
+ fi
runcmd private/devtools/warmups.sh $env $tok
}
