Skip to content

Commit d6cddf3

Browse files
committed
fix pipeline for AZ login
1 parent 8b84041 commit d6cddf3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/04_self_hosted.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
if: ${{ inputs.target == inputs.environment && inputs.target == 'prod' }}
4343
environment: ${{ inputs.environment }}
4444
steps:
45+
- name: Login
46+
id: login
47+
# from https://github.com/Azure/login/commits/master
48+
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2
49+
with:
50+
client-id: ${{ secrets.CD_CLIENT_ID }}
51+
tenant-id: ${{ secrets.TENANT_ID }}
52+
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
53+
4554
- name: Create staging slots
4655
uses: pagopa/github-actions-template/azure-function-start-staging-slot@a1b72480e9ac555364be0b7ecdcc8f5ab1c89ad9
4756
with:
@@ -62,6 +71,15 @@ jobs:
6271
if: ${{ always() && inputs.target == inputs.environment }}
6372
environment: ${{ inputs.environment }}
6473
steps:
74+
- name: Login
75+
id: login
76+
# from https://github.com/Azure/login/commits/master
77+
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2
78+
with:
79+
client-id: ${{ secrets.CD_CLIENT_ID }}
80+
tenant-id: ${{ secrets.TENANT_ID }}
81+
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
82+
6583
- name: Deploy Azure Function
6684
uses: pagopa/github-actions-template/azure-functions-deploy@a1b72480e9ac555364be0b7ecdcc8f5ab1c89ad9
6785
with:
@@ -81,6 +99,15 @@ jobs:
8199
runs-on: ubuntu-22.04
82100
environment: ${{ inputs.environment }}
83101
steps:
102+
- name: Login
103+
id: login
104+
# from https://github.com/Azure/login/commits/master
105+
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2
106+
with:
107+
client-id: ${{ secrets.CD_CLIENT_ID }}
108+
tenant-id: ${{ secrets.TENANT_ID }}
109+
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
110+
84111
- name: Deploy Azure Function
85112
uses: pagopa/github-actions-template/azure-function-stop-staging-slot@a1b72480e9ac555364be0b7ecdcc8f5ab1c89ad9
86113
with:

0 commit comments

Comments
 (0)