File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Azure Bicep
2
2
3
3
on :
4
- workflow_dispatch
5
-
6
- env :
7
- targetEnv : dev
4
+ workflow_dispatch :
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
build-and-deploy :
18
23
- uses : actions/checkout@main
19
24
20
25
# Log into Azure
21
- - uses : azure/login@v2.1.1
26
+ - uses : azure/login@v1
22
27
with :
23
28
client-id : ${{ secrets.AZURE_CLIENT_ID }}
24
29
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
31
36
with :
32
37
subscriptionId : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
33
38
resourceGroupName : ${{ secrets.AZURE_RG }}
34
- template : ./src/ InfrastructureAsCode/main.bicep
35
- parameters : environment=${{ env.targetEnv }}
39
+ template : ./InfrastructureAsCode/main.bicep
40
+ parameters : environment=${{ github.event.inputs.appenv }}
You can’t perform that action at this time.
0 commit comments