-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun-all-docker-cluster-tests.yaml
More file actions
152 lines (144 loc) · 4.24 KB
/
run-all-docker-cluster-tests.yaml
File metadata and controls
152 lines (144 loc) · 4.24 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
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
name: 'Run All Docker Cluster Tests'
on:
push:
branches:
- main
tags:
- 'release_*'
schedule:
- cron: '8 13 * * 1-5'
workflow_dispatch:
jobs:
####################
# Build HarperDB
####################
build:
uses: ./.github/workflows/build.yaml
# # These values should only be used to debug the workflow
# with:
# preferDownload: true
# dummyLicense: true
##########################
# Build Container Image
##########################
dockerBuild:
needs: build
strategy:
fail-fast: false
matrix:
flavor:
- 'standard'
- 'openshift'
platform:
- 'amd64'
- 'arm64'
include:
- flavor: 'standard'
file: 'utility/Docker/Dockerfile'
- flavor: 'openshift'
file: 'utility/Docker/Dockerfile-openshift'
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: docker-build
uses: ./.github/docker-build
with:
harperdbVersion: ${{ needs.build.outputs.harperdbVersion }}
containerImage: 'tar'
containerTarball: docker-harperdb_${{ needs.build.outputs.harperdbVersion }}-${{ matrix.flavor }}-${{ matrix.platform }}-${{ github.run_number }}.tar
dockerFile: ${{ matrix.file }}
buildPlatforms: 'linux/${{ matrix.platform }}'
#####################
# Security Scanning #
#####################
- name: Run Trivy vulnerability scanner
continue-on-error: true
uses: ./.github/container-scanning
with:
containerTarball: docker-harperdb_${{ needs.build.outputs.harperdbVersion }}-${{ matrix.flavor }}-${{ matrix.platform }}-${{ github.run_number }}.tar
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
##############################
# Call Docker Test template
# cluster test a
#############################
cluster-test-a:
needs:
- build
- dockerBuild
uses: ./.github/workflows/docker-cluster-test.yaml
strategy:
fail-fast: false
matrix:
flavor:
- 'standard'
- 'openshift'
platform:
- 'amd64'
- 'arm64'
with:
harperdbVersion: ${{ needs.build.outputs.harperdbVersion }}
dockerArtifactSuffix: '${{ matrix.flavor }}-${{ matrix.platform}}-${{ github.run_number }}'
clusterTest: 'test/ci-tests/docker-cluster-test-a.sh'
tfArtifactSuffix: '-test-a'
secrets: inherit
##############################
# Call Docker Test template
# cluster test b
#############################
cluster-test-b:
needs:
- build
- dockerBuild
uses: ./.github/workflows/docker-cluster-test.yaml
strategy:
fail-fast: false
matrix:
flavor:
- 'standard'
- 'openshift'
platform:
- 'amd64'
- 'arm64'
with:
harperdbVersion: ${{ needs.build.outputs.harperdbVersion }}
dockerArtifactSuffix: '${{ matrix.flavor }}-${{ matrix.platform}}-${{ github.run_number }}'
clusterTest: 'test/ci-tests/docker-cluster-test-b.sh'
tfArtifactSuffix: '-test-b'
secrets: inherit
##############################
# Call Docker Test template
# cluster test c
#############################
cluster-test-c:
needs:
- build
- dockerBuild
uses: ./.github/workflows/docker-cluster-test.yaml
strategy:
fail-fast: false
matrix:
flavor:
- 'standard'
- 'openshift'
platform:
- 'amd64'
- 'arm64'
with:
harperdbVersion: ${{ needs.build.outputs.harperdbVersion }}
dockerArtifactSuffix: '${{ matrix.flavor }}-${{ matrix.platform}}-${{ github.run_number }}'
clusterTest: 'test/ci-tests/docker-cluster-test-c.sh'
tfArtifactSuffix: '-test-c'
secrets: inherit
#################################
# Send Slack Message on failure
#################################
sendSlackMessage:
uses: ./.github/workflows/post-to-slack-channel.yaml
if: ${{ failure() && (github.event_name == 'schedule' || github.event_name == 'push') }}
secrets: inherit
needs:
- build
- cluster-test-a
- cluster-test-b
- cluster-test-c