Skip to content

Update build-iac-arm-from-bicep.yml #8

Update build-iac-arm-from-bicep.yml

Update build-iac-arm-from-bicep.yml #8

name: Validate IaC - Azure Bicep
on:
push:
branches: [ main ]
# paths:
# - 'Iac/Bicep/**'
pull_request:
branches: [ main ]
# paths:
# - 'Iac/Bicep/**'
workflow_dispatch:
permissions:
contents: read
jobs:
terraform-v1:
name: 'Validate Bicep - v1'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bicep
uses: anthony-c-martin/[email protected]
- name: Bicep Lint
run: |
bicep lint deploy.bicep
working-directory: IaC/Bicep/v1
- name: Bicep Build
run: |
bicep build deploy.bicep
working-directory: IaC/Bicep/v1
terraform-v2:
name: 'Validate Bicep - v2'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bicep
uses: anthony-c-martin/[email protected]
- name: Bicep Lint
run: |
bicep lint deploy.bicep
working-directory: IaC/Bicep/v2
- name: Bicep Build
run: |
bicep build deploy.bicep
working-directory: IaC/Bicep/v2