Setup Local #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}**." |