Skip to content

Commit

Permalink
Setup Deploy Bicep Action
Browse files Browse the repository at this point in the history
  • Loading branch information
leegrash committed Sep 24, 2024
1 parent 06e6af7 commit d5c28a7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-bicep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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

- name: Deploy Bicep files
run: az deployment group create --resource-group dd2482-demo-rg --template-file DemoEnvironment.json - -parameters DemoEnvironment.parameters.json --mode Complete

0 comments on commit d5c28a7

Please sign in to comment.