diff --git a/.github/workflows/Bicep-Build.yml b/.github/workflows/Bicep-Build.yml new file mode 100644 index 0000000..094412e --- /dev/null +++ b/.github/workflows/Bicep-Build.yml @@ -0,0 +1,26 @@ +name: Bicep-Build +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: "0 0 * * *" #at the end of every day + +jobs: + + Bicep-Build: + env: + ARM_CLIENT_ID: ${{ secrets.az_client_id }} + ARM_CLIENT_SECRET: ${{ secrets.az_client_secret }} + ARM_SUBSCRIPTION_ID: ${{ secrets.az_subscription_id }} + ARM_TENANT_ID: ${{ secrets.az_tenant_id }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Bicep Build + uses: aliencube/bicep-build-actions@v0.1 + with: + # List of .bicep files to build, delimited by a space. eg) file1 file2 file3 ... + #files: '**/*.bicep' + files: ./deployifnotexists-policy-with-initiative-and-assignment/main.bicep diff --git a/README.md b/README.md index 97fc1cb..e4b30d4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # bicep-policy-examples -Collection of Azure Policy examples using Bicep by @jesseloudon +[![Bicep-Build](https://github.com/globalbao/bicep-policy-examples/actions/workflows/Bicep-Build.yml/badge.svg)](https://github.com/globalbao/bicep-policy-examples/actions/workflows/Bicep-Build.yml) + +Collection of Azure Policy examples using Bicep :muscle: by @jesseloudon Get in touch :octocat: @@ -10,4 +12,6 @@ Get in touch :octocat: Learning resources :books: * [https://github.com/Azure/bicep](https://github.com/Azure/bicep) -* [https://docs.microsoft.com/en-us/azure/governance/policy/overview](https://docs.microsoft.com/en-us/azure/governance/policy/overview) \ No newline at end of file +* [https://docs.microsoft.com/en-us/azure/governance/policy/overview](https://docs.microsoft.com/en-us/azure/governance/policy/overview) + +*Icon Author* [monkik](https://www.flaticon.com/authors/monkik)