File tree Expand file tree Collapse file tree 1 file changed +31
-26
lines changed Expand file tree Collapse file tree 1 file changed +31
-26
lines changed Original file line number Diff line number Diff line change 1
- on :
1
+ name : Azure Bicep
2
+ on :
2
3
workflow_dispatch
3
4
4
- env :
5
- targetEnv : dev
6
-
7
- name : Azure Bicep
8
- jobs :
9
-
10
- build-and-deploy :
11
- runs-on : ubuntu-latest
12
- steps :
13
- - uses : actions/checkout@main
14
-
15
-
16
- with :
17
- client-id : ${{ secrets.AZURE_CLIENT_ID }}
18
- tenant-id : ${{ secrets.AZURE_TENANT_ID }}
19
- subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
20
- enable-AzPSSession : true
21
-
22
- - name : Run ARM deploy
23
- uses : azure/arm-deploy@v1
24
- with :
25
- subscriptionId : $
26
- resourceGroupName : $
27
- template : ./InfrastructureAsCode/main.bicep
28
- parameters : environment=$
5
+ env :
6
+ targetEnv : dev
7
+ RG : TechExcel_RG
8
+
9
+ permissions :
10
+ id-token : write
11
+ contents : read
12
+
13
+ jobs :
14
+ build-and-deploy :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@main
18
+
19
+ - name : Azure login
20
+ uses : azure/login@v2
21
+ with :
22
+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
23
+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
24
+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
25
+ enable-AzPSSession : true
26
+
27
+ - name : Run ARM deploy
28
+ uses : azure/arm-deploy@v1
29
+ with :
30
+ subscriptionId : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
31
+ resourceGroupName : ${{ env.RG }}
32
+ template : ./InfrastructureAsCode/main.bicep
33
+ parameters : environment=${{ env.targetEnv }}
You can’t perform that action at this time.
0 commit comments