EPAC Tenant Workflow #18
This file contains hidden or 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 pipeline is used to deploy Policies, Initiative definitions and Assignments into Azure. | |
| name: EPAC Tenant Workflow | |
| on: | |
| workflow_dispatch | |
| env: | |
| PAC_OUTPUT_FOLDER: ./Output | |
| PAC_DEFINITIONS_FOLDER: ./Definitions | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| plan: | |
| name: Plan tenant | |
| uses: ./.github/workflows/plan.yml | |
| with: | |
| pacEnvironmentSelector: tenant | |
| planGitHubEnvironment: TENANT-PLAN | |
| PAC_OUTPUT_FOLDER: ./Output | |
| PAC_DEFINITIONS_FOLDER: ./Definitions | |
| secrets: inherit | |
| deployPolicy: | |
| name: Deploy tenant Policy Changes | |
| needs: plan | |
| if: needs.plan.outputs.deployPolicyChanges == 'yes' && github.ref == 'refs/heads/main' | |
| uses: ./.github/workflows/deploy-policy.yml | |
| with: | |
| pacEnvironmentSelector: tenant | |
| planGitHubEnvironment: TENANT-DEPLOY-POLICY | |
| PAC_INPUT_FOLDER: ./Output | |
| PAC_DEFINITIONS_FOLDER: ./Definitions | |
| secrets: inherit | |
| deployRoles: | |
| name: Deploy tenant Role Changes | |
| needs: plan | |
| if: needs.plan.outputs.deployRoleChanges == 'yes' && github.ref == 'refs/heads/main' | |
| uses: ./.github/workflows/deploy-roles.yml | |
| with: | |
| pacEnvironmentSelector: tenant | |
| planGitHubEnvironment: TENANT-DEPLOY-ROLES | |
| PAC_INPUT_FOLDER: ./Output | |
| PAC_DEFINITIONS_FOLDER: ./Definitions | |
| secrets: inherit | |
| documentation: | |
| name: Documenation | |
| uses: ./.github/workflows/documentation.yml | |
| with: | |
| pacEnvironmentSelector: tenant | |
| planGitHubEnvironment: TENANT-PLAN | |
| PAC_OUTPUT_FOLDER: ./Output | |
| PAC_DEFINITIONS_FOLDER: ./Definitions | |
| secrets: inherit |