Skip to content

Commit fc108d8

Browse files
authored
Update deploy.yml
1 parent b3c4c43 commit fc108d8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/deploy.yml

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

33
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
813

914
jobs:
1015
build-and-deploy:
@@ -18,7 +23,7 @@ jobs:
1823
- uses: actions/checkout@main
1924

2025
# Log into Azure
21-
- uses: azure/login@v2.1.1
26+
- uses: azure/login@v1
2227
with:
2328
client-id: ${{ secrets.AZURE_CLIENT_ID }}
2429
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
@@ -31,5 +36,5 @@ jobs:
3136
with:
3237
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3338
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 }}

0 commit comments

Comments
 (0)