-
Notifications
You must be signed in to change notification settings - Fork 74
157 lines (141 loc) · 6.16 KB
/
rosa-cluster-auto-provision-on-schedule.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: ROSA Daily Scheduled Run
on:
schedule:
- cron: '0 5 * * 1-5' # Runs At 05:00 UTC on every day-of-week from Monday through Friday.
workflow_dispatch:
# env:
# CLUSTER_PREFIX: gh-keycloak
jobs:
keycloak-deploy-active-active:
name: ROSA Scheduled Create Active/Active cluster with External Infinispan and Persistent Sessions
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak-benchmark'
uses: ./.github/workflows/rosa-multi-az-cluster-create.yml
with:
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
enableMultiSiteFeature: true
enableExternalInfinispanFeature: false
activeActive: true
secrets: inherit
run-active-active-health-checks-after-deploy:
needs: keycloak-deploy-active-active
name: Run multi-site health checks after deployment
uses: ./.github/workflows/keycloak-multi-site-health-check.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
project: runner-keycloak
region: eu-west-1
expectedInfinispanNodeCount: '3'
secrets: inherit
run-functional-tests-active-active:
needs: run-active-active-health-checks-after-deploy
uses: ./.github/workflows/rosa-run-crossdc-func-tests.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
skipEmbeddedCaches: true
skipRemoteCaches: true
secrets: inherit
run-active-active-health-checks-after-functional-tests:
needs: run-functional-tests-active-active
name: Run multi-site health checks after functional tests
uses: ./.github/workflows/keycloak-multi-site-health-check.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
project: runner-keycloak
region: eu-west-1
expectedInfinispanNodeCount: '3'
secrets: inherit
run-scaling-benchmark-active-active:
needs: run-active-active-health-checks-after-functional-tests
uses: ./.github/workflows/rosa-scaling-benchmark.yml
with:
clusterName: gh-keycloak-a # ${{ env.CLUSTER_PREFIX }}-a -- unfortunately 'env.' doesn't work here
outputArchiveSuffix: 'active-active'
secrets: inherit
run-active-active-health-checks-after-benchmarks:
needs: run-scaling-benchmark-active-active
name: Run multi-site health checks after benchmarks
uses: ./.github/workflows/keycloak-multi-site-health-check.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
project: runner-keycloak
region: eu-west-1
expectedInfinispanNodeCount: '3'
secrets: inherit
keycloak-undeploy-active-active:
needs: run-active-active-health-checks-after-benchmarks
name: Undeploy Keycloak A/A deployment on the multi-az cluster
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak-benchmark'
uses: ./.github/workflows/rosa-multi-az-cluster-undeploy.yml
with:
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
skipAuroraDeletion: true
activeActive: true
secrets: inherit
keycloak-deploy-active-active-volatile:
needs: keycloak-undeploy-active-active
name: Deploy Volatile Active/Active
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak-benchmark'
uses: ./.github/workflows/rosa-multi-az-cluster-create.yml
with:
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
enableMultiSiteFeature: true
enableExternalInfinispanFeature: true
activeActive: true
createCluster: false
secrets: inherit
run-active-active-volatile-health-checks-after-deploy:
needs: keycloak-deploy-active-active-volatile
name: Run multi-site health checks after deployment
uses: ./.github/workflows/keycloak-multi-site-health-check.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
project: runner-keycloak
region: eu-west-1
expectedInfinispanNodeCount: '3'
secrets: inherit
run-functional-tests-active-active-volatile:
needs: run-active-active-volatile-health-checks-after-deploy
name: Test Volatile Active/Active
uses: ./.github/workflows/rosa-run-crossdc-func-tests.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
skipEmbeddedCaches: true
skipRemoteCaches: false
secrets: inherit
run-active-active-volatile-health-checks-after-functional-tests:
needs: run-functional-tests-active-active-volatile
name: Run multi-site health checks after functional tests
uses: ./.github/workflows/keycloak-multi-site-health-check.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
project: runner-keycloak
region: eu-west-1
expectedInfinispanNodeCount: '3'
secrets: inherit
run-scaling-benchmark-active-active-volatile:
needs: run-active-active-volatile-health-checks-after-functional-tests
name: Benchmark Volatile Active/Active
uses: ./.github/workflows/rosa-scaling-benchmark.yml
with:
clusterName: gh-keycloak-a # ${{ env.CLUSTER_PREFIX }}-a -- unfortunately 'env.' doesn't work here
skipCreateDataset: true
outputArchiveSuffix: 'active-active-volatile'
secrets: inherit
run-active-active-volatile-health-checks-after-benchmarks:
needs: run-scaling-benchmark-active-active-volatile
name: Run multi-site health checks after benchmarks
uses: ./.github/workflows/keycloak-multi-site-health-check.yml
with:
activeActive: true
clusterPrefix: gh-keycloak # ${{ env.CLUSTER_PREFIX }} -- unfortunately 'env.' doesn't work here
project: runner-keycloak
region: eu-west-1
expectedInfinispanNodeCount: '3'
secrets: inherit