-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.59 KB
/
epac-tenant-workflow.yml
File metadata and controls
58 lines (51 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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: deployPolicy
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