Update hallo_velar.yml
This commit is contained in:
parent
2b3469e956
commit
4999584870
1 changed files with 17 additions and 21 deletions
22
.github/workflows/hallo_velar.yml
vendored
22
.github/workflows/hallo_velar.yml
vendored
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue