Skip to content

Commit 0eb6702

Browse files
Merge pull request #5 from Vamshi-Microsoft/vk-dockerbuild-job
feat: dockerbuild job
2 parents af6badf + f9d3712 commit 0eb6702

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/deploy-Parameterized.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)