-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1656 from aztfmod/int-5.7.0
5.7.0
- Loading branch information
Showing
437 changed files
with
8,672 additions
and
1,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
You can test the workflows on your local machine | ||
|
||
## MacOS | ||
|
||
Install act to run Github workflows on your local machine | ||
``` | ||
brew install act | ||
``` | ||
|
||
from the root of the module | ||
|
||
``` | ||
# Make sure you have a GH_TOKEN with repo and workflow privileges | ||
export GH_TOKEN=xxx | ||
act --container-architecture linux/arm64 \ | ||
-s GITHUB_TOKEN=$GITHUB_TOKEN \ | ||
-s ARM_CLIENT_ID=$ARM_CLIENT_ID \ | ||
-s ARM_CLIENT_SECRET=$ARM_CLIENT_SECRET \ | ||
-s ARM_TENANT_ID=$ARM_TENANT_ID \ | ||
-s ARM_SUBSCRIPTION_ID=$ARM_SUBSCRIPTION_ID \ | ||
-P ubuntu-latest=catthehacker/ubuntu:act-latest \ | ||
-W .github/workflows/landingzone-scenarios.yaml \ | ||
--input scenario=landingzone-scenarios-longrunners.json \ | ||
workflow_dispatch | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
|
||
name: phases_dispatcher_destroy | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
matrix: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
|
||
setup_destroy: | ||
name: setup phases | ||
runs-on: ubuntu-latest | ||
outputs: | ||
name: ${{ steps.setup_destroy.outputs.name }} | ||
phase1: ${{ steps.setup_destroy.outputs.phase1 }} | ||
phase2: ${{ steps.setup_destroy.outputs.phase2 }} | ||
phase3: ${{ steps.setup_destroy.outputs.phase3 }} | ||
lz_ref: ${{ steps.setup_destroy.outputs.lz_ref }} | ||
steps: | ||
- name: set outputs with default values | ||
id: setup_destroy | ||
run: | | ||
echo '${{inputs.matrix}}' | jq -c | ||
# | ||
name=$(echo '${{inputs.matrix}}' | jq -c .name) && echo "name: $name" | ||
phase1=$(echo '${{inputs.matrix}}' | jq -c .phase1) && echo "phase1: $phase1" | ||
phase2=$(echo '${{inputs.matrix}}' | jq -c .phase2) && echo "phase2: $phase2" | ||
phase3=$(echo '${{inputs.matrix}}' | jq -c .phase3) && echo "phase3: $phase3" | ||
lz_ref=$(echo '${{inputs.matrix}}' | jq -c .lz_ref) && echo "lz_ref: $lz_ref" | ||
# | ||
echo "name=$name" >> $GITHUB_OUTPUT | ||
echo "phase1=$phase1" >> $GITHUB_OUTPUT | ||
echo "phase2=$phase2" >> $GITHUB_OUTPUT | ||
echo "phase3=$phase3" >> $GITHUB_OUTPUT | ||
echo "lz_ref=$lz_ref" >> $GITHUB_OUTPUT | ||
phase3_destroy: | ||
needs: [setup_destroy] | ||
|
||
strategy: | ||
max-parallel: 20 | ||
fail-fast: false | ||
matrix: | ||
phase: ${{ fromJSON(needs.setup_destroy.outputs.phase3) }} | ||
|
||
uses: ./.github/workflows/rover.yaml | ||
secrets: inherit | ||
with: | ||
scenario: ${{ needs.setup_destroy.outputs.name }} | ||
name: phase3 | ||
phase: ${{ toJSON(matrix.phase) }} | ||
lz_ref: ${{ fromJSON(needs.setup_destroy.outputs.lz_ref) }} | ||
plan_options: -destroy | ||
|
||
phase2_destroy: | ||
needs: [setup_destroy, phase3_destroy] | ||
|
||
strategy: | ||
max-parallel: 20 | ||
fail-fast: false | ||
matrix: | ||
phase: ${{ fromJSON(needs.setup_destroy.outputs.phase2) }} | ||
|
||
uses: ./.github/workflows/rover.yaml | ||
secrets: inherit | ||
with: | ||
scenario: ${{ needs.setup_destroy.outputs.name }} | ||
name: phase2 | ||
phase: ${{ toJSON(matrix.phase) }} | ||
lz_ref: ${{ fromJSON(needs.setup_destroy.outputs.lz_ref) }} | ||
plan_options: -destroy | ||
|
||
phase1_destroy: | ||
needs: [setup_destroy, phase2_destroy] | ||
|
||
strategy: | ||
max-parallel: 20 | ||
fail-fast: false | ||
matrix: | ||
phase: ${{ fromJSON(needs.setup_destroy.outputs.phase1) }} | ||
|
||
uses: ./.github/workflows/rover.yaml | ||
secrets: inherit | ||
with: | ||
scenario: ${{ needs.setup_destroy.outputs.name }} | ||
name: phase1 | ||
phase: ${{ toJSON(matrix.phase) }} | ||
lz_ref: ${{ fromJSON(needs.setup_destroy.outputs.lz_ref) }} | ||
plan_options: -destroy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"config_files": [ | ||
"azuread/100-azuread_administrative_units", | ||
"azuread/100-azuread-application-with-sevice-principle-with-builtin-roles", | ||
"azuread/100-sevice-principle-with-builtin-roles", | ||
"azuread/101-azuread_administrative_unit_member", | ||
"azuread/101-azuread-application-with-service-principle-with-custom-roles", | ||
"azuread/101-service-principle-with-custom-roles", | ||
"azuread/102-password-rotation", | ||
"azuread/103-service-principal-only", | ||
"azuread/104-azuread-group-membership", | ||
"azuread/105-azuread-application-with-optional-claims", | ||
"azuread/106-azuread-application-with-api-scopes", | ||
"azuread/201-groups-and-roles" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.