9
9
required : true
10
10
tutorial_dir :
11
11
type : string
12
- description : The directory (relative to repo root) for the tutorial you want to build
12
+ description : The directory (relative to repo root) for the tutorial you want to build
13
13
required : true
14
-
14
+
15
+ permissions :
16
+ packages : write
17
+
15
18
jobs :
16
19
setup_shared_matrix :
17
20
runs-on : ubuntu-latest
18
21
outputs :
19
22
matrix_data : ${{ steps.set-matrix.outputs.matrix_data }}
20
-
23
+
21
24
steps :
22
25
- id : set-matrix
23
26
run : |
39
42
docker_arch : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_arch }}
40
43
containers_to_build :
41
44
- ["docker/Dockerfile.caliper", "ghcr.io/llnl/caliper"]
42
-
45
+
43
46
steps :
44
47
- uses : actions/checkout@v4
45
48
with :
@@ -48,17 +51,17 @@ jobs:
48
51
- name : Remove unneeded stuff to make space for container
49
52
uses : jlumbroso/free-disk-space@v1.3.1
50
53
with :
51
- tool-cache : true
54
+ tool-cache : true
52
55
android : true
53
56
dotnet : true
54
57
haskell : true
55
58
large-packages : true
56
- docker-images : false
59
+ docker-images : false
57
60
swap-storage : true
58
-
61
+
59
62
- name : Set up Docker
60
63
uses : docker/setup-docker-action@v4
61
-
64
+
62
65
- name : Set up QEMU
63
66
uses : docker/setup-qemu-action@v3
64
67
@@ -71,13 +74,13 @@ jobs:
71
74
registry : ghcr.io
72
75
username : ${{ github.actor }}
73
76
password : ${{ secrets.GITHUB_TOKEN }}
74
-
77
+
75
78
- name : Pull layers if they exist
76
79
env :
77
80
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
78
81
run : docker pull ${container} || echo "${container} has not yet been pushed"
79
-
80
- - name : Build container
82
+
83
+ - name : Build container
81
84
env :
82
85
context : ${{ matrix.tutorial_dir }}
83
86
dockerfile : ${{ matrix.containers_to_build[0] }}
@@ -109,7 +112,7 @@ jobs:
109
112
docker_arch : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_arch }}
110
113
containers_to_build :
111
114
- ["docker/Dockerfile.thicket", "ghcr.io/llnl/thicket"]
112
-
115
+
113
116
steps :
114
117
- uses : actions/checkout@v4
115
118
with :
@@ -118,17 +121,17 @@ jobs:
118
121
- name : Remove unneeded stuff to make space for container
119
122
uses : jlumbroso/free-disk-space@v1.3.1
120
123
with :
121
- tool-cache : true
124
+ tool-cache : true
122
125
android : true
123
126
dotnet : true
124
127
haskell : true
125
128
large-packages : true
126
- docker-images : false
129
+ docker-images : false
127
130
swap-storage : true
128
-
131
+
129
132
- name : Set up Docker
130
133
uses : docker/setup-docker-action@v4
131
-
134
+
132
135
- name : Set up QEMU
133
136
uses : docker/setup-qemu-action@v3
134
137
@@ -147,7 +150,7 @@ jobs:
147
150
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
148
151
run : docker pull ${container} || echo "${container} has not yet been pushed"
149
152
150
- - name : Build container
153
+ - name : Build container
151
154
env :
152
155
context : ${{ matrix.tutorial_dir }}
153
156
dockerfile : ${{ matrix.containers_to_build[0] }}
@@ -161,7 +164,7 @@ jobs:
161
164
env :
162
165
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
163
166
run : docker push ${container}
164
-
167
+
165
168
build_benchpark_container :
166
169
needs :
167
170
- setup_shared_matrix
@@ -179,7 +182,7 @@ jobs:
179
182
docker_arch : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_arch }}
180
183
containers_to_build :
181
184
- ["docker/Dockerfile.benchpark", "ghcr.io/llnl/benchpark"]
182
-
185
+
183
186
steps :
184
187
- uses : actions/checkout@v4
185
188
with :
@@ -188,17 +191,17 @@ jobs:
188
191
- name : Remove unneeded stuff to make space for container
189
192
uses : jlumbroso/free-disk-space@v1.3.1
190
193
with :
191
- tool-cache : true
194
+ tool-cache : true
192
195
android : true
193
196
dotnet : true
194
197
haskell : true
195
198
large-packages : true
196
- docker-images : false
199
+ docker-images : false
197
200
swap-storage : true
198
-
201
+
199
202
- name : Set up Docker
200
203
uses : docker/setup-docker-action@v4
201
-
204
+
202
205
- name : Set up QEMU
203
206
uses : docker/setup-qemu-action@v3
204
207
@@ -216,8 +219,8 @@ jobs:
216
219
env :
217
220
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
218
221
run : docker pull ${container} || echo "${container} has not yet been pushed"
219
-
220
- - name : Build container
222
+
223
+ - name : Build container
221
224
env :
222
225
context : ${{ matrix.tutorial_dir }}
223
226
dockerfile : ${{ matrix.containers_to_build[0] }}
@@ -249,7 +252,7 @@ jobs:
249
252
docker_arch : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_arch }}
250
253
containers_to_build :
251
254
- ["docker/Dockerfile.spawn", "ghcr.io/llnl/reproducible-benchmarking-spawn"]
252
-
255
+
253
256
steps :
254
257
- uses : actions/checkout@v4
255
258
with :
@@ -258,17 +261,17 @@ jobs:
258
261
- name : Remove unneeded stuff to make space for container
259
262
uses : jlumbroso/free-disk-space@v1.3.1
260
263
with :
261
- tool-cache : true
264
+ tool-cache : true
262
265
android : true
263
266
dotnet : true
264
267
haskell : true
265
268
large-packages : true
266
- docker-images : false
269
+ docker-images : false
267
270
swap-storage : true
268
-
271
+
269
272
- name : Set up Docker
270
273
uses : docker/setup-docker-action@v4
271
-
274
+
272
275
- name : Set up QEMU
273
276
uses : docker/setup-qemu-action@v3
274
277
@@ -286,8 +289,8 @@ jobs:
286
289
env :
287
290
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
288
291
run : docker pull ${container} || echo "${container} has not yet been pushed"
289
-
290
- - name : Build container
292
+
293
+ - name : Build container
291
294
env :
292
295
context : ${{ matrix.tutorial_dir }}
293
296
dockerfile : ${{ matrix.containers_to_build[0] }}
@@ -301,7 +304,7 @@ jobs:
301
304
env :
302
305
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
303
306
run : docker push ${container}
304
-
307
+
305
308
build_init_container :
306
309
needs :
307
310
- setup_shared_matrix
@@ -310,15 +313,15 @@ jobs:
310
313
strategy :
311
314
fail-fast : true
312
315
matrix :
313
- tag :
316
+ tag :
314
317
- ${{ github.event.inputs.tag }}
315
318
tutorial_dir :
316
319
- ${{ github.event.inputs.tutorial_dir }}
317
320
docker_os : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_os }}
318
321
docker_arch : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_arch }}
319
322
containers_to_build :
320
323
- ["docker/Dockerfile.init", "ghcr.io/llnl/reproducible-benchmarking-init"]
321
-
324
+
322
325
steps :
323
326
- uses : actions/checkout@v4
324
327
with :
@@ -327,17 +330,17 @@ jobs:
327
330
- name : Remove unneeded stuff to make space for container
328
331
uses : jlumbroso/free-disk-space@v1.3.1
329
332
with :
330
- tool-cache : true
333
+ tool-cache : true
331
334
android : true
332
335
dotnet : true
333
336
haskell : true
334
337
large-packages : true
335
- docker-images : false
338
+ docker-images : false
336
339
swap-storage : true
337
-
340
+
338
341
- name : Set up Docker
339
342
uses : docker/setup-docker-action@v4
340
-
343
+
341
344
- name : Set up QEMU
342
345
uses : docker/setup-qemu-action@v3
343
346
@@ -355,8 +358,8 @@ jobs:
355
358
env :
356
359
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
357
360
run : docker pull ${container} || echo "${container} has not yet been pushed"
358
-
359
- - name : Build container
361
+
362
+ - name : Build container
360
363
env :
361
364
context : ${{ matrix.tutorial_dir }}
362
365
dockerfile : ${{ matrix.containers_to_build[0] }}
@@ -370,7 +373,7 @@ jobs:
370
373
env :
371
374
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
372
375
run : docker push ${container}
373
-
376
+
374
377
build_hub_container :
375
378
needs :
376
379
- setup_shared_matrix
@@ -379,15 +382,15 @@ jobs:
379
382
strategy :
380
383
fail-fast : true
381
384
matrix :
382
- tag :
385
+ tag :
383
386
- ${{ github.event.inputs.tag }}
384
387
tutorial_dir :
385
388
- ${{ github.event.inputs.tutorial_dir }}
386
389
docker_os : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_os }}
387
390
docker_arch : ${{ fromJson(needs.setup_shared_matrix.outputs.matrix_data).docker_arch }}
388
391
containers_to_build :
389
392
- ["docker/Dockerfile.hub", "ghcr.io/llnl/reproducible-benchmarking-hub"]
390
-
393
+
391
394
steps :
392
395
- uses : actions/checkout@v4
393
396
with :
@@ -396,17 +399,17 @@ jobs:
396
399
- name : Remove unneeded stuff to make space for container
397
400
uses : jlumbroso/free-disk-space@v1.3.1
398
401
with :
399
- tool-cache : true
402
+ tool-cache : true
400
403
android : true
401
404
dotnet : true
402
405
haskell : true
403
406
large-packages : true
404
- docker-images : false
407
+ docker-images : false
405
408
swap-storage : true
406
-
409
+
407
410
- name : Set up Docker
408
411
uses : docker/setup-docker-action@v4
409
-
412
+
410
413
- name : Set up QEMU
411
414
uses : docker/setup-qemu-action@v3
412
415
@@ -424,8 +427,8 @@ jobs:
424
427
env :
425
428
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
426
429
run : docker pull ${container} || echo "${container} has not yet been pushed"
427
-
428
- - name : Build container
430
+
431
+ - name : Build container
429
432
env :
430
433
context : ${{ matrix.tutorial_dir }}
431
434
dockerfile : ${{ matrix.containers_to_build[0] }}
@@ -438,4 +441,4 @@ jobs:
438
441
- name : Deploy container
439
442
env :
440
443
container : " ${{ matrix.containers_to_build[1] }}:${{ matrix.tag }}"
441
- run : docker push ${container}
444
+ run : docker push ${container}
0 commit comments