We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2322e commit 15d3704Copy full SHA for 15d3704
.github/workflows/deploy.yml
@@ -1,10 +1,15 @@
1
-name: Azure Bicep By Benoit
+name: Azure Bicep Advanced
2
3
on:
4
- workflow_dispatch
5
-
6
-env:
7
- targetEnv: dev
+ workflow_dispatch:
+ inputs:
+ appenv:
+ type: choice
8
+ description: Choose the target environment
9
+ options:
10
+ - dev
11
+ - test
12
+ - prod
13
14
jobs:
15
build-and-deploy:
@@ -32,4 +37,4 @@ jobs:
32
37
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
33
38
resourceGroupName: ${{ secrets.AZURE_RG }}
34
39
template: ./src/InfrastructureAsCode/main.bicep
35
- parameters: environment=${{ env.targetEnv }}
40
+ parameters: environment=${{ github.event.inputs.appenv }}
0 commit comments