From 62feed21758aa7b06a83876fb844feda11a7cc15 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 18:45:20 +1100 Subject: [PATCH 1/7] create build workflow --- .github/workflows/Bicep-Build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/Bicep-Build.yml diff --git a/.github/workflows/Bicep-Build.yml b/.github/workflows/Bicep-Build.yml new file mode 100644 index 0000000..d515120 --- /dev/null +++ b/.github/workflows/Bicep-Build.yml @@ -0,0 +1,30 @@ +name: Bicep-Build +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + 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' + - name: Build Result + shell: bash + run: | + shopt -s globstar + ls -altR **/sample*.* From 605e198c7c828dffd2b8b2dfc029a2803fd335e7 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 18:47:33 +1100 Subject: [PATCH 2/7] up --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97fc1cb..6dc32de 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # bicep-policy-examples -Collection of Azure Policy examples using Bicep by @jesseloudon +Collection of Azure Policy examples using Bicep :muscle: by @jesseloudon Get in touch :octocat: @@ -10,4 +10,4 @@ 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) From 4a3daed7e4340dc8ea255e0a5b512dba006b4596 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 18:48:02 +1100 Subject: [PATCH 3/7] up --- .github/workflows/Bicep-Build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Bicep-Build.yml b/.github/workflows/Bicep-Build.yml index d515120..b386cad 100644 --- a/.github/workflows/Bicep-Build.yml +++ b/.github/workflows/Bicep-Build.yml @@ -1,9 +1,9 @@ name: Bicep-Build on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] schedule: - cron: "0 0 * * *" #at the end of every day From 18c372375de0645cf9f48151a5428cf13988bc3d Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 18:50:51 +1100 Subject: [PATCH 4/7] test workflow --- .github/workflows/Bicep-Build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Bicep-Build.yml b/.github/workflows/Bicep-Build.yml index b386cad..7674b78 100644 --- a/.github/workflows/Bicep-Build.yml +++ b/.github/workflows/Bicep-Build.yml @@ -22,7 +22,8 @@ jobs: 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: '**/*.bicep' + files: ./deployifnotexists-policy-with-initiative-and-assignment/main.bicep - name: Build Result shell: bash run: | From e0def7a50d5a1c849a4a0a99361f910b65ce4a0a Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 18:53:09 +1100 Subject: [PATCH 5/7] test --- .github/workflows/Bicep-Build.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/Bicep-Build.yml b/.github/workflows/Bicep-Build.yml index 7674b78..094412e 100644 --- a/.github/workflows/Bicep-Build.yml +++ b/.github/workflows/Bicep-Build.yml @@ -24,8 +24,3 @@ jobs: # 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 - - name: Build Result - shell: bash - run: | - shopt -s globstar - ls -altR **/sample*.* From 0a46b8661c10f3565125ad8cec0f6ccc97187d4b Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 18:55:07 +1100 Subject: [PATCH 6/7] badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6dc32de..f7b223b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # bicep-policy-examples +[![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: From aff968a862564be66b132e4e20136d3bce87eb23 Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 8 Mar 2021 21:00:53 +1100 Subject: [PATCH 7/7] up --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f7b223b..e4b30d4 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,5 @@ 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) + +*Icon Author* [monkik](https://www.flaticon.com/authors/monkik)