Skip to content

Commit

Permalink
Rewritten workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leegrash committed Sep 24, 2024
1 parent d104c99 commit 631ca6d
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/deploy-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Azure CLI
uses: azure/CLI@v1
uses: actions/checkout@main

- name: Log in 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
- name: Deploy Bicep
uses: azure/arm-deploy@v1
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
resourceGroupName: ${{ secrets.AZURE_RESOURCE_GROUP }}
template: ./DemoEnvironment.bicep
parameters: ./DemoEnvironment.parameters.json
mode: Complete

0 comments on commit 631ca6d

Please sign in to comment.