-
Notifications
You must be signed in to change notification settings - Fork 139
156 lines (138 loc) · 4.35 KB
/
server-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
name: Server 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-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-server
target: pki-server
cache-from: type=local,src=/tmp/cache-pki-deps
outputs: type=docker,dest=pki-server.tar
- name: Store server image
uses: actions/cache@v3
with:
key: pki-server-${{ matrix.os }}-${{ github.run_id }}
path: pki-server.tar
server-basic-test:
name: Basic server
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-basic-test.yml
with:
os: ${{ matrix.os }}
server-https-pem-test:
name: HTTPS connector with PEM files
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-https-pem-test.yml
with:
os: ${{ matrix.os }}
server-https-jks-test:
name: HTTPS connector with JKS file
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-https-jks-test.yml
with:
os: ${{ matrix.os }}
server-https-pkcs12-test:
name: "HTTPS connector with PKCS #12 file"
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-https-pkcs12-test.yml
with:
os: ${{ matrix.os }}
server-https-nss-test:
name: HTTPS connector with NSS database
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-https-nss-test.yml
with:
os: ${{ matrix.os }}
server-upgrade-test:
name: Server upgrade
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-upgrade-test.yml
with:
os: ${{ matrix.os }}
server-container-test:
name: Server container
needs: [init, build]
strategy:
matrix: ${{ fromJSON(needs.init.outputs.matrix) }}
uses: ./.github/workflows/server-container-test.yml
with:
os: ${{ matrix.os }}