File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ jobs:
149149 # SIMPLE RULE: Deploys new infrastructure unless you provide existing webapp URL!
150150 # ============================================================================
151151 if : always() && (github.event_name != 'workflow_dispatch' || github.event.inputs.existing_webapp_url == '' || github.event.inputs.existing_webapp_url == null)
152- needs : [docker-build] # Add dependency on docker-build job (will be skipped if not needed)
153152 runs-on : ubuntu-latest
154153 outputs :
155154 RESOURCE_GROUP_NAME : ${{ steps.check_create_rg.outputs.RESOURCE_GROUP_NAME }}
@@ -660,8 +659,9 @@ jobs:
660659 echo "⚠️ Skipping Docker image cleanup (using standard branch image: $IMAGE_TAG)"
661660 fi
662661
663- - name : Select Environment
662+ - name : Select Environment and Delete deployment using azd
664663 run : |
664+ set -e
665665 # Try to select the environment if it exists, otherwise create a minimal environment for cleanup
666666 azd env list
667667 if azd env list | grep -q "${{ env.ENV_NAME }}"; then
@@ -676,9 +676,6 @@ jobs:
676676 azd env set AZURE_LOCATION="${{ env.AZURE_LOCATION }}"
677677 fi
678678
679- - name : Delete deployment using azd
680- run : |
681- set -e
682679 echo "Deleting deployment..."
683680 azd down --purge --force --no-prompt
684681 echo "Deployment deleted successfully."
You can’t perform that action at this time.
0 commit comments