Skip to content

Commit

Permalink
Add or update the Azure App Service build and deployment workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
Raju00533 committed Mar 19, 2024
1 parent c82f14f commit 016d3bf
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/main_rajuapp-devops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ jobs:

- name: npm install, build, and test
run: |
yarn install
yarn build
npm install
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: |
cd dist/
zip release.zip ./* -r
run: zip release.zip ./* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
Expand All @@ -44,8 +42,8 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -55,13 +53,13 @@ jobs:

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

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_BFED8EC47AE84208A052937DDBBF4F02 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_D71558F45D57464D83EA875128F83399 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_44A25E34C9094AC0BF517A09295725CB }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C98881EF50294D8EA4FD8CE949641CB3 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_EEC9D180867F4416997C85A5ADCABD1E }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_F35B0142A825412780696BB615B27CF5 }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand All @@ -70,4 +68,4 @@ jobs:
app-name: 'rajuapp-devops'
slot-name: 'Production'
package: .


0 comments on commit 016d3bf

Please sign in to comment.