-
Notifications
You must be signed in to change notification settings - Fork 139
183 lines (162 loc) · 4.94 KB
/
tools-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
name: Tools 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 builder image
uses: docker/build-push-action@v3
with:
context: .
build-args: |
OS_VERSION=${{ matrix.os }}
COPR_REPO=${{ needs.init.outputs.repo }}
tags: pki-builder
target: pki-builder
cache-from: type=local,src=/tmp/cache-pki-deps
outputs: type=docker,dest=pki-builder.tar
- name: Store builder image
uses: actions/cache@v3
with:
key: pki-tools-builder-${{ matrix.os }}-${{ github.run_id }}
path: pki-builder.tar
- 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-tools-runner-${{ matrix.os }}-${{ github.run_id }}
path: pki-runner.tar
PKICertImport-test:
name: PKICertImport
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/PKICertImport-test.yml
with:
os: ${{ matrix.os }}
pki-nss-rsa-test:
name: PKI NSS CLI with RSA
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-nss-rsa-test.yml
with:
os: ${{ matrix.os }}
pki-nss-ecc-test:
name: PKI NSS CLI with ECC
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-nss-ecc-test.yml
with:
os: ${{ matrix.os }}
pki-nss-aes-test:
name: PKI NSS CLI with AES
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-nss-aes-test.yml
with:
os: ${{ matrix.os }}
pki-nss-hsm-test:
name: PKI NSS CLI with HSM
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-nss-hsm-test.yml
with:
os: ${{ matrix.os }}
pki-nss-exts-test:
name: PKI NSS CLI with Extensions
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-nss-exts-test.yml
with:
os: ${{ matrix.os }}
pki-pkcs7-test:
name: PKI PKCS7 CLI
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-pkcs7-test.yml
with:
os: ${{ matrix.os }}
pki-pkcs11-test:
name: PKI PKCS11 CLI
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-pkcs11-test.yml
with:
os: ${{ matrix.os }}
pki-pkcs12-test:
name: PKI PKCS12 CLI
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/pki-pkcs12-test.yml
with:
os: ${{ matrix.os }}
rpminspect-test:
name: rpminspect
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/rpminspect-test.yml
with:
os: ${{ matrix.os }}