Skip to content

Commit 5b90646

Browse files
committed
dep
1 parent e5a637a commit 5b90646

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@ name: Deploy to Azure
22

33
on:
44
workflow_dispatch:
5-
6-
env:
7-
targetEnv: dev
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
deploy:
1116
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
pages: write
20+
id-token: write
1221

1322
steps:
1423
- name: Checkout repository
@@ -25,7 +34,8 @@ jobs:
2534
- name: Deploy ARM Template
2635
uses: azure/arm-deploy@v1
2736
with:
28-
scope: subscription
37+
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
38+
resourceGroupName: ${{ secrets.AZURE_RG }}
2939
template: ./src/InfrastructureAsCode/main.bicep
3040
deployment-name: arm-deployment
31-
parameters: environment=${{ env.targetEnv }}
41+
parameters: environment=${{ github.event.inputs.appenv }}

0 commit comments

Comments
 (0)