Skip to content

Commit

Permalink
Update main_intelliq-be-s1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV authored Nov 13, 2023
1 parent 917aed4 commit c44457e
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/main_intelliq-be-s1.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js app to Azure Web App - IntelliQ-BE-S1
name: Build and deploy Node.js app to Azure Web Apps

on:
push:
Expand Down Expand Up @@ -35,27 +35,38 @@ jobs:
name: node-app
path: release.zip

deploy:
deploy_to_first_app:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

environment: { name: 'Production', url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} }
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: node-app

- name: Unzip artifact for deployment
run: unzip release.zip

- name: 'Deploy to Azure Web App'
with: { name: node-app }
- run: unzip release.zip
- name: 'Deploy to Azure Web App - IntelliQ-BE-S1'
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'IntelliQ-BE-S1'
slot-name: 'Production'
package: .
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F641C9E536F846BBBEAD850D1E8E5EF7 }}

deploy_to_second_app:
runs-on: ubuntu-latest
needs: build
environment: { name: 'production', url: ${{ steps.deploy-to-second-webapp.outputs.webapp-url }} }
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with: { name: node-app }
- run: unzip release.zip
- name: 'Deploy to Azure Web App - IntelliQ-BE'
id: deploy-to-second-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'IntelliQ-BE'
slot-name: 'production'
package: .
publish-profile: ${{ secrets.AzureAppService_PublishProfile_e24498ce0aea41ffa2d08302d5e8d3df }}

0 comments on commit c44457e

Please sign in to comment.