File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,22 @@ name: Deploy to Azure
2
2
3
3
on :
4
4
workflow_dispatch :
5
-
6
- env :
7
- targetEnv : dev
5
+ inputs :
6
+ appenv :
7
+ type : choice
8
+ description : Choose the target environment
9
+ options :
10
+ - dev
11
+ - test
12
+ - prod
8
13
9
14
jobs :
10
15
deploy :
11
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : read
19
+ pages : write
20
+ id-token : write
12
21
13
22
steps :
14
23
- name : Checkout repository
25
34
- name : Deploy ARM Template
26
35
uses : azure/arm-deploy@v1
27
36
with :
28
- scope : subscription
37
+ subscriptionId : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
38
+ resourceGroupName : ${{ secrets.AZURE_RG }}
29
39
template : ./src/InfrastructureAsCode/main.bicep
30
40
deployment-name : arm-deployment
31
- parameters : environment=${{ env.targetEnv }}
41
+ parameters : environment=${{ github.event.inputs.appenv }}
You can’t perform that action at this time.
0 commit comments