Skip to content

Deploy IAC

Deploy IAC #2

Workflow file for this run

name: Deploy IAC
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout code
- uses: actions/checkout@main
# Log into Azure
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
# Deploy ARM template
- name: Run ARM deploy
uses: azure/arm-deploy@v1
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG }}
template: ./InfrastructureAsCode/main.bicep
parameters: environment=dev
# output containerName variable from template
- run: echo ${{ steps.deploy.outputs.containerName }}