10
10
jobs :
11
11
build :
12
12
name : Build image
13
- runs-on : ubuntu-24.04-arm
13
+ runs-on : ${{ matrix.runs-on }}
14
14
strategy :
15
15
fail-fast : false
16
16
matrix :
17
+ runs-on : [ ubuntu-24.04, ubuntu-24.04-arm ]
17
18
os : [ fedora-rawhide, fedora-41, fedora-40, centos-9-stream, rocky-9, rocky-8, almalinux-9, almalinux-8 ]
18
19
docker : [ docker ]
19
20
timeout-minutes : 15
20
21
steps :
21
22
- uses : actions/checkout@v4
22
23
- uses : ./.github/actions/install-podman-arm
24
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
23
25
- name : Separate git work tree with just the files needed for build
24
26
run : git worktree add --no-checkout ../minimize-for-build
25
27
- name : Populate with the Dockerfile
@@ -63,11 +65,12 @@ jobs:
63
65
64
66
test-docker :
65
67
name : Run with docker
66
- runs-on : ubuntu-24.04-arm
68
+ runs-on : ${{ matrix.runs-on }}
67
69
needs : [ build ]
68
70
strategy :
69
71
fail-fast : false
70
72
matrix :
73
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
71
74
include :
72
75
- os : fedora-41
73
76
- os : fedora-41
92
95
steps :
93
96
- uses : actions/checkout@v4
94
97
- uses : ./.github/actions/install-podman-arm
98
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
95
99
- uses : ./.github/actions/docker-cgroups-ubuntu-22
96
100
- uses : actions/download-artifact@v4
97
101
with :
@@ -111,11 +115,12 @@ jobs:
111
115
112
116
test-rootless-docker :
113
117
name : Run with rootless docker
114
- runs-on : ubuntu-24.04-arm
118
+ runs-on : ${{ matrix.runs-on }}
115
119
needs : [ build ]
116
120
strategy :
117
121
fail-fast : false
118
122
matrix :
123
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
119
124
include :
120
125
- os : fedora-rawhide
121
126
readonly : --read-only
@@ -131,6 +136,7 @@ jobs:
131
136
steps :
132
137
- uses : actions/checkout@v4
133
138
- uses : ./.github/actions/install-podman-arm
139
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
134
140
- run : sudo systemctl disable --now docker.service docker.socket
135
141
- run : |
136
142
cat <<EOT | sudo tee "/etc/apparmor.d/home.runner.bin.rootlesskit"
@@ -160,16 +166,18 @@ jobs:
160
166
161
167
test-podman :
162
168
name : Run with sudo podman 4
163
- runs-on : ubuntu-24.04-arm
169
+ runs-on : ${{ matrix.runs-on }}
164
170
needs : [ build ]
165
171
strategy :
166
172
fail-fast : false
167
173
matrix :
174
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
168
175
os : [ fedora-41, centos-9-stream ]
169
176
timeout-minutes : 30
170
177
steps :
171
178
- uses : actions/checkout@v4
172
179
- uses : ./.github/actions/install-podman-arm
180
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
173
181
- uses : actions/download-artifact@v4
174
182
with :
175
183
name : freeipa-server-${{ matrix.os }}
@@ -183,11 +191,12 @@ jobs:
183
191
184
192
test-rootless-podman :
185
193
name : Run with rootless podman 4
186
- runs-on : ubuntu-24.04-arm
194
+ runs-on : ${{ matrix.runs-on }}
187
195
needs : [ build ]
188
196
strategy :
189
197
fail-fast : false
190
198
matrix :
199
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
191
200
include :
192
201
- os : fedora-41
193
202
readonly : --read-only
@@ -201,6 +210,7 @@ jobs:
201
210
steps :
202
211
- uses : actions/checkout@v4
203
212
- uses : ./.github/actions/install-podman-arm
213
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
204
214
- uses : actions/download-artifact@v4
205
215
with :
206
216
name : freeipa-server-${{ matrix.os }}
@@ -216,11 +226,12 @@ jobs:
216
226
217
227
test-rootless-podman-22-04 :
218
228
name : Run with rootless podman 4 on Ubuntu 22.04
219
- runs-on : ubuntu-22.04-arm
229
+ runs-on : ${{ matrix.runs-on }}
220
230
needs : [ build ]
221
231
strategy :
222
232
fail-fast : false
223
233
matrix :
234
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
224
235
include :
225
236
- os : fedora-rawhide
226
237
readonly : --read-only
@@ -250,11 +261,12 @@ jobs:
250
261
251
262
test-upgrade :
252
263
name : Upgrade from older version or build
253
- runs-on : ubuntu-24.04-arm
264
+ runs-on : ${{ matrix.runs-on }}
254
265
needs : [ build ]
255
266
strategy :
256
267
fail-fast : false
257
268
matrix :
269
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
258
270
include :
259
271
- os : fedora-rawhide
260
272
data-from : fedora-41
@@ -270,6 +282,7 @@ jobs:
270
282
steps :
271
283
- uses : actions/checkout@v4
272
284
- uses : ./.github/actions/install-podman-arm
285
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
273
286
- uses : ./.github/actions/docker-cgroups-ubuntu-22
274
287
- uses : actions/download-artifact@v4
275
288
with :
@@ -283,11 +296,12 @@ jobs:
283
296
284
297
test-upgrade-podman :
285
298
name : Upgrade from older version with podman 4
286
- runs-on : ubuntu-24.04-arm
299
+ runs-on : ${{ matrix.runs-on }}
287
300
needs : [ build ]
288
301
strategy :
289
302
fail-fast : false
290
303
matrix :
304
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
291
305
include :
292
306
- os : fedora-41
293
307
data-from : fedora-40
@@ -297,6 +311,7 @@ jobs:
297
311
steps :
298
312
- uses : actions/checkout@v4
299
313
- uses : ./.github/actions/install-podman-arm
314
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
300
315
- uses : actions/download-artifact@v4
301
316
with :
302
317
name : freeipa-server-${{ matrix.os }}
@@ -311,16 +326,18 @@ jobs:
311
326
312
327
test-k3s :
313
328
name : Run with K3s with docker
314
- runs-on : ubuntu-24.04-arm
329
+ runs-on : ${{ matrix.runs-on }}
315
330
needs : [ build ]
316
331
strategy :
317
332
fail-fast : false
318
333
matrix :
334
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
319
335
os : [ fedora-rawhide, fedora-41, rocky-9, almalinux-8, centos-9-stream ]
320
336
timeout-minutes : 30
321
337
steps :
322
338
- uses : actions/checkout@v4
323
339
- uses : ./.github/actions/install-podman-arm
340
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
324
341
- uses : ./.github/actions/docker-cgroups-ubuntu-22
325
342
- uses : actions/download-artifact@v4
326
343
with :
@@ -346,17 +363,19 @@ jobs:
346
363
347
364
build-test-rhel-podman :
348
365
name : Build and test RHEL image
349
- runs-on : ubuntu-24.04-arm
366
+ runs-on : ${{ matrix.runs-on }}
350
367
needs : [ test-subscription ]
351
368
if : needs.test-subscription.outputs.has_rhel_subscriptions == 1
352
369
strategy :
353
370
fail-fast : false
354
371
matrix :
372
+ runs-on : [ubuntu-24.04, ubuntu-24.04-arm]
355
373
os : [ rhel-9, rhel-8 ]
356
374
timeout-minutes : 30
357
375
steps :
358
376
- uses : actions/checkout@v4
359
377
- uses : ./.github/actions/install-podman-arm
378
+ if : matrix.runs-on == 'ubuntu-24.04-arm'
360
379
- name : For RHEL builds, use entitlements
361
380
uses : ./.github/actions/podman-entitlement
362
381
with :
@@ -366,4 +385,3 @@ jobs:
366
385
run : podman build -t localhost/freeipa-server:${{ matrix.os }} -f Dockerfile.${{ matrix.os }} .
367
386
- name : Run master
368
387
run : docker=podman tests/run-master-and-replica.sh localhost/freeipa-server:${{ matrix.os }}
369
-
0 commit comments