From 159d5a22f212ebc58ffe7ee0f2cc07d407aaa9d3 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sat, 6 Mar 2021 01:53:13 -0500 Subject: [PATCH] auto-delete manual deploy disks If you need to keep them from being deleted, you can update them manually from the gcloud console, as the instance will not be deleted automatically. --- .github/workflows/manual-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml index d8f7a9d7..1ba15fee 100644 --- a/.github/workflows/manual-deploy.yml +++ b/.github/workflows/manual-deploy.yml @@ -58,7 +58,7 @@ jobs: gcloud compute instances create-with-container "zebrad-$BRANCH_NAME-$SHORT_SHA" \ --container-image "gcr.io/$PROJECT_ID/$REPOSITORY/$BRANCH_NAME:$SHORT_SHA" \ --container-mount-disk mount-path='/zebrad-cache',name=zebrad-cache-$SHORT_SHA \ - --create-disk name=zebrad-cache-$SHORT_SHA,size=100GB,type=pd-balanced \ + --create-disk name=zebrad-cache-$SHORT_SHA,auto-delete=yes,size=100GB,type=pd-balanced \ --machine-type n2-standard-4 \ --service-account cos-vm@zealous-zebra.iam.gserviceaccount.com \ --tags zebrad \