Skip to content

Commit 28d54f1

Browse files
committed
adding working directory and tear down of tf module
1 parent 681fa4f commit 28d54f1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy-to-aks.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ jobs:
8181
juju add-model kubeflow
8282
8383
- name: Test bundle deployment
84+
working-directory: ./python/tests/reference_architecture/azure
8485
run: |
85-
cd ./python/tests/reference_architecture/azure
8686
terraform init
8787
source get-vars.sh
8888
terraform apply -auto-approve
@@ -100,6 +100,11 @@ jobs:
100100
run: juju debug-log --replay --no-tail
101101
if: failure() || cancelled()
102102

103+
- name: Tear down deployment
104+
if: always()
105+
working-directory: ./python/tests/reference_architecture/azure
106+
run: terraform destroy -auto-approve
107+
103108
- name: Delete AKS cluster
104109
if: always()
105110
run: az aks delete --resource-group ${{ env.RESOURCE_GROUP }} --name ${{ env.NAME }} --yes

0 commit comments

Comments
 (0)