-
Notifications
You must be signed in to change notification settings - Fork 139
201 lines (178 loc) · 5.38 KB
/
ca-tests.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
name: CA Tests
on: [push, pull_request]
jobs:
init:
name: Initializing workflow
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.init.outputs.matrix }}
repo: ${{ steps.init.outputs.repo }}
db-image: ${{ steps.init.outputs.db-image }}
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Initialize workflow
id: init
env:
BASE64_MATRIX: ${{ secrets.BASE64_MATRIX }}
BASE64_REPO: ${{ secrets.BASE64_REPO }}
BASE64_DATABASE: ${{ secrets.BASE64_DATABASE }}
run: |
tests/bin/init-workflow.sh
# docs/development/Building_PKI.md
build:
name: Building PKI
needs: init
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache pki-deps image
id: cache-pki-deps
uses: actions/cache@v3
with:
key: pki-deps-${{ matrix.os }}-${{ hashFiles('pki.spec') }}
path: /tmp/cache-pki-deps
- name: Build pki-deps image
uses: docker/build-push-action@v3
with:
context: .
build-args: |
OS_VERSION=${{ matrix.os }}
COPR_REPO=${{ needs.init.outputs.repo }}
tags: pki-deps
target: pki-deps
cache-to: type=local,dest=/tmp/cache-pki-deps
if: steps.cache-pki-deps.outputs.cache-hit != 'true'
- name: Build runner image
uses: docker/build-push-action@v3
with:
context: .
build-args: |
OS_VERSION=${{ matrix.os }}
COPR_REPO=${{ needs.init.outputs.repo }}
tags: pki-runner
target: pki-runner
cache-from: type=local,src=/tmp/cache-pki-deps
outputs: type=docker,dest=pki-runner.tar
- name: Store runner image
uses: actions/cache@v3
with:
key: pki-ca-runner-${{ matrix.os }}-${{ github.run_id }}
path: pki-runner.tar
- name: Build server image
uses: docker/build-push-action@v3
with:
context: .
build-args: |
OS_VERSION=${{ matrix.os }}
COPR_REPO=${{ needs.init.outputs.repo }}
tags: pki-ca
target: pki-ca
cache-from: type=local,src=/tmp/cache-pki-deps
outputs: type=docker,dest=pki-ca.tar
- name: Store server image
uses: actions/cache@v3
with:
key: pki-ca-server-${{ matrix.os }}-${{ github.run_id }}
path: pki-ca.tar
ca-basic-test:
name: Basic CA
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-basic-test.yml
with:
os: ${{ matrix.os }}
ca-ecc-test:
name: CA with ECC
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-ecc-test.yml
with:
os: ${{ matrix.os }}
ca-rsa-pss-test:
name: CA with RSA/PSS
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-rsa-pss-test.yml
with:
os: ${{ matrix.os }}
ca-existing-certs-test:
name: CA with existing certs
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-existing-certs-test.yml
with:
os: ${{ matrix.os }}
ca-existing-nssdb-test:
name: CA with existing NSS database
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-existing-nssdb-test.yml
with:
os: ${{ matrix.os }}
ca-existing-ds-test:
name: CA with existing DS
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-existing-ds-test.yml
with:
os: ${{ matrix.os }}
ca-shared-token-test:
name: CA with shared token
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-shared-token-test.yml
with:
os: ${{ matrix.os }}
ca-hsm-test:
name: CA with HSM
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-hsm-test.yml
with:
os: ${{ matrix.os }}
ca-container-test:
name: CA container
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/ca-container-test.yml
with:
os: ${{ matrix.os }}
subca-basic-test:
name: Basic Sub-CA
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/subca-basic-test.yml
with:
os: ${{ matrix.os }}
subca-cmc-test:
name: Sub-CA with CMC
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/subca-cmc-test.yml
with:
os: ${{ matrix.os }}
subca-external-test:
name: Sub-CA with external cert
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/subca-external-test.yml
with:
os: ${{ matrix.os }}