-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.01 KB
/
local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Setup Local
on:
workflow_dispatch:
inputs:
USER_ID:
description: "The ID of the user to deploy resources for"
required: true
default: "fin"
REGION:
description: "The Azure region to deploy to"
required: true
default: "australiaeast"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log into Azure
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Build infrastructure
id: bicep
uses: azure/arm-deploy@v1
with:
scope: "subscription"
template: .bicep/local.bicep
parameters: "region=${{ inputs.REGION }} userId=${{ inputs.USER_ID }}"
failOnStdErr: false
region: ${{ inputs.REGION }}
- name: Show outputs of deployment
run: |
echo "Resources have been successfully deployed to **${{ steps.bicep.outputs.resourceGroupName }}**."