-
-
Notifications
You must be signed in to change notification settings - Fork 12
110 lines (100 loc) · 2.63 KB
/
acceptance.yaml
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
name: Acceptance
on:
schedule:
- cron: '0 0 1 * *' # First day of each month
workflow_dispatch:
permissions:
id-token: write
contents: read
checks: write
jobs:
apply_network:
name: Apply Network
uses: ./.github/workflows/terraform.yaml
concurrency: ${{ github.ref_name }}-network
with:
module: network/sandbox
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
apply_cluster:
name: Apply Cluster
uses: ./.github/workflows/terraform.yaml
needs:
- apply_network
concurrency: ${{ github.ref_name }}-cluster
with:
module: cluster/sandbox-v1
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
apply_ingress:
name: Apply Ingress
uses: ./.github/workflows/terraform.yaml
needs:
- apply_cluster
concurrency: ${{ github.ref_name }}-ingress
with:
module: ingress/sandbox
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
apply_platform:
name: Apply Platform
uses: ./.github/workflows/terraform.yaml
needs:
- apply_ingress
concurrency: ${{ github.ref_name }}-platform
with:
module: platform/sandbox-v1
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
tests:
name: Run Tests
uses: ./.github/workflows/tests.yaml
needs:
- apply_platform
concurrency: ${{ github.ref_name }}-platform
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
cleanup_platform:
name: Cleanup Platform
uses: ./.github/workflows/terraform.yaml
needs:
- tests
concurrency: ${{ github.ref_name }}-platform
with:
module: platform/sandbox-v1
terraform_command: destroy
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
cleanup_ingress:
name: Cleanup Ingress
uses: ./.github/workflows/terraform.yaml
needs:
- cleanup_platform
concurrency: ${{ github.ref_name }}-ingress
with:
module: ingress/sandbox
terraform_command: destroy
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
cleanup_cluster:
name: Cleanup Cluster
uses: ./.github/workflows/terraform.yaml
needs:
- cleanup_ingress
concurrency: ${{ github.ref_name }}-cluster
with:
module: cluster/sandbox-v1
terraform_command: destroy
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
cleanup_network:
name: Cleanup Network
uses: ./.github/workflows/terraform.yaml
needs:
- cleanup_cluster
concurrency: ${{ github.ref_name }}-network
with:
module: network/sandbox
terraform_command: destroy
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}