Skip to content

Commit

Permalink
Update production_cas-server.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Wassim-Rached authored Jan 13, 2025
1 parent b78c3e4 commit 22fa72c
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/production_cas-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ name: Build and deploy Node.js app to Azure Web App - cas-server

on:
push:
branches:
- production
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -42,8 +40,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 @@ -53,13 +51,13 @@ jobs:

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

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_036F8BE616414AA8AD9C9F69D8CFA244 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_902BFA835F7649E3A754E8DE2B401AE0 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_21C495553E394723AD321622D5BFFD00 }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_036F8BE616414AA8AD9C9F69D8CFA244 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_902BFA835F7649E3A754E8DE2B401AE0 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_21C495553E394723AD321622D5BFFD00 }}

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


0 comments on commit 22fa72c

Please sign in to comment.