Skip to content

Commit 34ec867

Browse files
committed
Add commands to stop and disable Nginx before deploying the application
1 parent 8d3b044 commit 34ec867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
username: ${{ secrets.AZURE_VM_USERNAME }}
4141
key: ${{ secrets.AZURE_VM_SSH_KEY }}
4242
script: |
43+
sudo systemctl stop nginx || true
44+
sudo systemctl disable nginx || true
4345
az login --identity
4446
az acr login --name ${{ secrets.ACR_NAME }}
4547
docker pull ${{ secrets.ACR_NAME }}.azurecr.io/simple-web-app:latest

0 commit comments

Comments
 (0)