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