Skip to content

Commit

Permalink
scripts/destroy-coco-aks: delete resource group if not in ci
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jul 15, 2024
1 parent 628488c commit bb4eeb9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/destroy-coco-aks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ done

set -x

az aks delete \
--resource-group "${name}" \
--name "${name}" \
--yes
if [[ -z ${CI:-} ]]; then
az group delete \
--name "${name}" \
--yes
else
az aks delete \
--resource-group "${name}" \
--name "${name}" \
--yes
fi

0 comments on commit bb4eeb9

Please sign in to comment.