Skip to content

Commit ca8d480

Browse files
authored
Update deploy.yml
1 parent ff0db80 commit ca8d480

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
name: Azure Bicep
22

33
on:
4-
workflow_dispatch
4+
workflow_dispatch:
5+
inputs:
6+
appenv:
7+
type: choice
8+
description: Choose the target environment
9+
options:
10+
- dev
11+
- test
12+
- prod
513

614
jobs:
715
build-and-deploy:
@@ -29,4 +37,4 @@ jobs:
2937
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3038
resourceGroupName: ${{ secrets.AZURE_RG }}
3139
template: ./src/InfrastructureAsCode/main.bicep
32-
parameters: environment=${{ env.targetEnv }}
40+
parameters: environment=${{ github.event.inputs.appenv }}

0 commit comments

Comments
 (0)