|
42 | 42 | if: ${{ inputs.target == inputs.environment && inputs.target == 'prod' }} |
43 | 43 | environment: ${{ inputs.environment }} |
44 | 44 | 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 | + |
45 | 54 | - name: Create staging slots |
46 | 55 | uses: pagopa/github-actions-template/azure-function-start-staging-slot@a1b72480e9ac555364be0b7ecdcc8f5ab1c89ad9 |
47 | 56 | with: |
|
62 | 71 | if: ${{ always() && inputs.target == inputs.environment }} |
63 | 72 | environment: ${{ inputs.environment }} |
64 | 73 | 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 | + |
65 | 83 | - name: Deploy Azure Function |
66 | 84 | uses: pagopa/github-actions-template/azure-functions-deploy@a1b72480e9ac555364be0b7ecdcc8f5ab1c89ad9 |
67 | 85 | with: |
|
81 | 99 | runs-on: ubuntu-22.04 |
82 | 100 | environment: ${{ inputs.environment }} |
83 | 101 | 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 | + |
84 | 111 | - name: Deploy Azure Function |
85 | 112 | uses: pagopa/github-actions-template/azure-function-stop-staging-slot@a1b72480e9ac555364be0b7ecdcc8f5ab1c89ad9 |
86 | 113 | with: |
|
0 commit comments