Skip to content

Commit 2ec385d

Browse files
Add cleanup step to Azure Dev Deploy workflow for environment teardown
1 parent e4f3a45 commit 2ec385d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/azure-dev.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,10 @@ jobs:
5252
fi
5353
azd config set defaults.subscription "$AZURE_SUBSCRIPTION_ID"
5454
azd env set AZURE_ENV_OPENAI_LOCATION="$AZURE_ENV_OPENAI_LOCATION"
55-
azd up --no-prompt
55+
azd up --no-prompt
56+
57+
- name: Cleanup Deployment
58+
if: always()
59+
shell: bash
60+
run: |
61+
azd down --environment "$AZURE_ENV_NAME" --force --purge --no-prompt || true

0 commit comments

Comments
 (0)