Skip to content

Commit

Permalink
fix(EMS-4098): fixed deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi Markan committed Jan 10, 2025
1 parent 9cbf083 commit db3dc77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/actions/webapp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ runs:
docker push ${{ env.ACR }}/${{ inputs.webapp }}:latest
shell: bash

# Step 7: Create and swap deployment slot.
- name: Slot 🔀
# Step 7: Create deployment slot.
- name: Create ➕
uses: azure/cli@v2.1.0
with:
inlineScript: |
Expand All @@ -110,18 +110,18 @@ runs:
--docker-registry-server-user ${{ env.ACR_USER }} \
--docker-registry-server-password ${{ inputs.acr }}
# Step 8: Swap deployment slot.
- name: Swap 🔀
uses: azure/cli@v2.1.0
with:
inlineScript: |
# Swap slot
az webapp deployment slot swap \
--slot ${{ github.sha }} \
--name ${{ env.WEBAPP }} \
--action swap
# Delete temporary slot
az webapp deployment slot delete \
--slot ${{ github.sha }} \
--name ${{ env.WEBAPP }}
# Step 8: Cleanup temporary slot.
# Step 9: Cleanup temporary slot.
- name: Cleanup 🧹
if: always()
uses: azure/cli@v2.1.0
Expand Down

0 comments on commit db3dc77

Please sign in to comment.