Skip to content

Commit 22fa72c

Browse files
Update production_cas-server.yml
1 parent b78c3e4 commit 22fa72c

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/production_cas-server.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ name: Build and deploy Node.js app to Azure Web App - cas-server
55

66
on:
77
push:
8-
branches:
9-
- production
108
workflow_dispatch:
119

1210
jobs:
@@ -42,8 +40,8 @@ jobs:
4240
environment:
4341
name: 'Production'
4442
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
45-
permissions:
46-
id-token: write #This is required for requesting the JWT
43+
permissions:
44+
id-token: write #This is required for requesting the JWT
4745

4846
steps:
4947
- name: Download artifact from build job
@@ -53,13 +51,13 @@ jobs:
5351

5452
- name: Unzip artifact for deployment
5553
run: unzip release.zip
56-
57-
- name: Login to Azure
58-
uses: azure/login@v2
59-
with:
60-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_036F8BE616414AA8AD9C9F69D8CFA244 }}
61-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_902BFA835F7649E3A754E8DE2B401AE0 }}
62-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_21C495553E394723AD321622D5BFFD00 }}
54+
55+
- name: Login to Azure
56+
uses: azure/login@v2
57+
with:
58+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_036F8BE616414AA8AD9C9F69D8CFA244 }}
59+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_902BFA835F7649E3A754E8DE2B401AE0 }}
60+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_21C495553E394723AD321622D5BFFD00 }}
6361

6462
- name: 'Deploy to Azure Web App'
6563
id: deploy-to-webapp
@@ -68,4 +66,4 @@ jobs:
6866
app-name: 'cas-server'
6967
slot-name: 'Production'
7068
package: .
71-
69+

0 commit comments

Comments
 (0)