Skip to content

Commit

Permalink
DO NOT MERGE: always update nginx config for dev deploy, even if fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Oct 10, 2024
1 parent e175268 commit 44aced3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ jobs:
echo "Failure"
exit 1
fi
- if: steps.new_has_succeeded.outcome == 'success'
- if: true
name: "Update NGINX VM backend"
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand All @@ -245,15 +245,15 @@ jobs:
sed -i 's/XX.XX.XX.XX/'${{ env.NEW_IP }}'/g' config/nginx/website_dev.conf && \
scp -o StrictHostKeyChecking=no config/nginx/website_dev.conf azureuser@${{ secrets.DEV_NGINX_IP }}:/etc/nginx/conf.d/website.conf && \
ssh -o StrictHostKeyChecking=no azureuser@${{ secrets.DEV_NGINX_IP }} /home/azureuser/restart_nginx.sh
- if: steps.new_has_succeeded.outcome == 'success'
- if: true
name: "Delete previous VM resource group"
uses: "azure/[email protected]"
with:
azcliversion: 2.30.0
inlineScript: |
az group delete --yes --no-wait \
--name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.OLD_COLOUR }}"
- if: steps.new_has_succeeded.outcome != 'success'
- if: false
name: "Delete failed VM resource group"
uses: "azure/[email protected]"
with:
Expand Down

0 comments on commit 44aced3

Please sign in to comment.