From 57374da89048a386f04951f14738d2b8c535bcf9 Mon Sep 17 00:00:00 2001 From: Orfeas Kourkakis Date: Tue, 19 Mar 2024 15:45:43 +0200 Subject: [PATCH] fix: Delete AKS cluster separately --- .github/workflows/deploy-to-aks.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-aks.yaml b/.github/workflows/deploy-to-aks.yaml index 3821fb3..d0991b4 100644 --- a/.github/workflows/deploy-to-aks.yaml +++ b/.github/workflows/deploy-to-aks.yaml @@ -94,6 +94,10 @@ jobs: run: kubectl -n kubeflow get pods | tail -n +2 | grep CrashLoopBackOff | awk '{print $1}' | xargs -n1 kubectl -n kubeflow logs --all-containers=true --tail 100 if: failure() - - name: Delete AKS resource group + - name: Delete AKS cluster + if: always() + run: az aks delete --resource-group ${{ env.RESOURCE_GROUP }} --name ${{ env.NAME }} --yes + + - name: Delete resource group if: always() run: az group delete --name ${{ env.RESOURCE_GROUP }} --yes