-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DO NOT MERGE: always update nginx config for dev deploy, even if fails
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|