Skip to content

Commit 2c00aa1

Browse files
author
Raffaele Marcello
committed
Refactor Azure Bicep deployment workflow to include environment selection
1 parent faa9d82 commit 2c00aa1

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ name: Azure Bicep
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
appenv:
7-
type: choice
8-
description: Choose the target environment
9-
options:
10-
- dev
11-
- test
12-
- prod
13-
14-
env:
15-
targetEnv: dev
5+
inputs:
6+
appenv:
7+
type: choice
8+
description: Choose the target environment
9+
options:
10+
- dev
11+
- test
12+
- prod
1613

1714
jobs:
1815
build-and-deploy:
@@ -40,4 +37,4 @@ jobs:
4037
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
4138
resourceGroupName: ${{ secrets.AZURE_RG }}
4239
template: ./src/InfrastructureAsCode/main.bicep
43-
parameters: environment=${{ env.targetEnv }}
40+
parameters: environment=${{ github.event.inputs.appenv }}

0 commit comments

Comments
 (0)