Ensure the project gets deleted as well.

This commit is contained in:
2021-01-20 15:09:18 +13:00
parent 7177ee362d
commit 27ed9b06f2
2 changed files with 10 additions and 0 deletions

View File

@ -14,5 +14,10 @@ for project in $(gcloud projects list | awk '{ print $1 }' | grep gitlab); do
# Delete the instance
gcloud compute instances delete --quiet $instance --zone australia-southeast1-a --project $project
done
# Delete the project as well
gcloud projects delete $project --quiet
done

View File

@ -122,6 +122,11 @@ for project in $(gcloud projects list | awk '{ print $1 }' | grep gitlab); do
# Delete the instance
gcloud compute instances delete --quiet $instance --zone australia-southeast1-a --project $project
done
# Delete the project as well
gcloud projects delete $project --quiet
done
#+end_src