forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (109 loc) · 4.47 KB
/
eks-tenant-infra.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: eks-tenant-infra
on:
push:
paths:
- ".github/workflows/eks-tenant-infra.yml"
- "infra/**"
concurrency: eks-tenant-infra
jobs:
# gp-nonprod -
gp-nonprod-ap-northeast-1:
uses: CondeNast/global-workflows/.github/workflows/[email protected]
with:
version: 1-1.2.6
environment_plan: gp-nonprod-readonly
environment_apply: gp-nonprod-protected
infra_dir: gp-nonprod/ap-northeast-1
working_dir: infra
aws_default_region: ap-northeast-1
main_branch: main
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ecr_aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
ecr_aws_secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
terraform_modules_deploy_key: ${{ secrets.GLOBAL_TERRAFORM_MODULES_DEPLOY_KEY }}
gp-nonprod-eu-central-1:
uses: CondeNast/global-workflows/.github/workflows/[email protected]
with:
version: 1-1.2.6
environment_plan: gp-nonprod-readonly
environment_apply: gp-nonprod-protected
infra_dir: gp-nonprod/eu-central-1
working_dir: infra
aws_default_region: eu-central-1
main_branch: main
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ecr_aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
ecr_aws_secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
terraform_modules_deploy_key: ${{ secrets.GLOBAL_TERRAFORM_MODULES_DEPLOY_KEY }}
gp-nonprod-us-east-1:
uses: CondeNast/global-workflows/.github/workflows/[email protected]
with:
version: 1-1.2.6
environment_plan: gp-nonprod-readonly
environment_apply: gp-nonprod-protected
infra_dir: gp-nonprod/us-east-1
working_dir: infra
aws_default_region: us-east-1
main_branch: main
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ecr_aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
ecr_aws_secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
terraform_modules_deploy_key: ${{ secrets.GLOBAL_TERRAFORM_MODULES_DEPLOY_KEY }}
# gp-prod
gp-prod-ap-northeast-1:
needs: gp-nonprod-ap-northeast-1
uses: CondeNast/global-workflows/.github/workflows/[email protected]
with:
version: 1-1.2.6
environment_plan: gp-prod-readonly
environment_apply: gp-prod-protected
infra_dir: gp-prod/ap-northeast-1
working_dir: infra
aws_default_region: ap-northeast-1
main_branch: main
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ecr_aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
ecr_aws_secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
terraform_modules_deploy_key: ${{ secrets.GLOBAL_TERRAFORM_MODULES_DEPLOY_KEY }}
gp-prod-eu-central-1:
needs: gp-nonprod-eu-central-1
uses: CondeNast/global-workflows/.github/workflows/[email protected]
with:
version: 1-1.2.6
environment_plan: gp-prod-readonly
environment_apply: gp-prod-protected
infra_dir: gp-prod/eu-central-1
working_dir: infra
aws_default_region: eu-central-1
main_branch: main
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ecr_aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
ecr_aws_secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
terraform_modules_deploy_key: ${{ secrets.GLOBAL_TERRAFORM_MODULES_DEPLOY_KEY }}
gp-prod-us-east-1:
needs: gp-nonprod-us-east-1
uses: CondeNast/global-workflows/.github/workflows/[email protected]
with:
version: 1-1.2.6
environment_plan: gp-prod-readonly
environment_apply: gp-prod-protected
infra_dir: gp-prod/us-east-1
working_dir: infra
aws_default_region: us-east-1
main_branch: main
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ecr_aws_access_key_id: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }}
ecr_aws_secret_access_key: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }}
terraform_modules_deploy_key: ${{ secrets.GLOBAL_TERRAFORM_MODULES_DEPLOY_KEY }}