Skip to content

Update deploy-bicep.yaml #2

Update deploy-bicep.yaml

Update deploy-bicep.yaml #2

Workflow file for this run

name: Deploy Bicep to Azure
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Azure CLI
uses: azure/CLI@v1
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Install Bicep CLI
run: az bicep install
- name: Build Bicep files
run: az bicep build --file DemoEnvironment.bicep --outdir compiled
- name: Deploy Bicep files
run: az deployment group create --resource-group dd2482-demo-rg --template-file compiled/DemoEnvironment.json --parameters @DemoEnvironment.parameters.json --mode Complete