Update hallo_velar.yml

This commit is contained in:
Lokesh Ram Chand B 2025-08-13 11:37:40 +05:30 committed by GitHub
parent 2b3469e956
commit 4999584870
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,3 @@
# 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 - velar
on:
@ -13,8 +10,10 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read #This is required for actions/checkout
contents: read
defaults:
run:
working-directory: ./backend # run commands inside backend
steps:
- uses: actions/checkout@v4
@ -33,33 +32,30 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: node-app
path: .
path: ./backend # upload only backend folder
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout
permissions:
id-token: write
contents: read
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: node-app
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F727CA48A81946BF99B8EC3F878129C2 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_96ACFC59BC06409281B7E8A8F508E57D }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_039360BE8FF74AFB88B8C70AD12FE650 }}
- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F727CA48A81946BF99B8EC3F878129C2 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_96ACFC59BC06409281B7E8A8F508E57D }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_039360BE8FF74AFB88B8C70AD12FE650 }}
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v3
with:
app-name: 'velar'
slot-name: 'Production'
package: .
package: ./backend # deploy only backend folder