Update deploy-bicep.yaml #2
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: 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 |