Skip to content

Commit

Permalink
Delete old GAE versions on deployment (UMAprotocol#1398)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rice <[email protected]>
  • Loading branch information
mrice32 authored May 10, 2020
1 parent 8f09900 commit d9c0c05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/deploy_to_staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ gsutil cp gs://staging-deployment-configuration/voter-app.yaml voter-dapp/app.ya
# Deploy docs
./scripts/deploy_docs.sh documentation/gae_app.yaml -q

# Delete old versions.
# TODO: this currently deletes any versions that aren't being used. It'd be preferable to leave the last few versions
# for each service.
VERSIONS_TO_DELETE=$(gcloud app versions list --filter="TRAFFIC_SPLIT=0.00" --format="value(VERSION.ID)")

gcloud app versions delete -q $VERSIONS_TO_DELETE

0 comments on commit d9c0c05

Please sign in to comment.