@@ -272,20 +272,43 @@ jobs:
272
272
python : ["3.11"]
273
273
os : [ubuntu-22.04]
274
274
fail-fast : false
275
- name : " [build] docker images"
275
+ name : " [build] docker images (excluding frontend) "
276
276
steps :
277
- - name : Remove unused software
277
+ - uses : actions/checkout@v4
278
+ - name : setup docker buildx
279
+ id : buildx
280
+ uses : docker/setup-buildx-action@v3
281
+ with :
282
+ driver : docker-container
283
+ - name : expose github runtime for buildx
284
+ uses : crazy-max/ghaction-github-runtime@v3
285
+ - name : show system environs
286
+ run : ./ci/helpers/show_system_versions.bash
287
+ - name : build images
278
288
run : |
279
- echo "Available storage before:"
280
- sudo df -h
281
- echo
282
- sudo rm -rf /usr/share/dotnet
283
- sudo rm -rf /usr/local/lib/android
284
- sudo rm -rf /opt/ghc
285
- sudo rm -rf /opt/hostedtoolcache/CodeQL
286
- echo "Available storage after:"
287
- sudo df -h
288
- echo
289
+ export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
290
+ mkdir --parents /${{ runner.temp }}/build
291
+ make build local-dest=/${{ runner.temp }}/build exclude=static-webserver
292
+ - name : upload build artifacts
293
+ uses : actions/upload-artifact@v4
294
+ with :
295
+ name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
296
+ path : /${{ runner.temp }}/build
297
+
298
+ build-test-images-frontend :
299
+ # this step comes first, so that it is executed as first job in push calls
300
+ # in PR calls this step is anyway skipped
301
+ needs : changes
302
+ if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
303
+ timeout-minutes : 30
304
+ runs-on : ${{ matrix.os }}
305
+ strategy :
306
+ matrix :
307
+ python : ["3.11"]
308
+ os : [ubuntu-22.04]
309
+ fail-fast : false
310
+ name : " [build] docker images (frontend-only)"
311
+ steps :
289
312
- uses : actions/checkout@v4
290
313
- name : setup docker buildx
291
314
id : buildx
@@ -300,11 +323,11 @@ jobs:
300
323
run : |
301
324
export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
302
325
mkdir --parents /${{ runner.temp }}/build
303
- make build local-dest=/${{ runner.temp }}/build
326
+ make build local-dest=/${{ runner.temp }}/build target=static-webserver
304
327
- name : upload build artifacts
305
328
uses : actions/upload-artifact@v4
306
329
with :
307
- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
330
+ name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-frontend
308
331
path : /${{ runner.temp }}/build
309
332
310
333
unit-test-webserver-01 :
@@ -1868,7 +1891,7 @@ jobs:
1868
1891
with :
1869
1892
action : actions/download-artifact@v4
1870
1893
with : |
1871
- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
1894
+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
1872
1895
path: /${{ runner.temp }}/build
1873
1896
attempt_limit : 5
1874
1897
attempt_delay : 1000
@@ -1932,7 +1955,7 @@ jobs:
1932
1955
with :
1933
1956
action : actions/download-artifact@v4
1934
1957
with : |
1935
- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
1958
+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
1936
1959
path: /${{ runner.temp }}/build
1937
1960
attempt_limit : 5
1938
1961
attempt_delay : 1000
@@ -1996,7 +2019,7 @@ jobs:
1996
2019
with :
1997
2020
action : actions/download-artifact@v4
1998
2021
with : |
1999
- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2022
+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
2000
2023
path: /${{ runner.temp }}/build
2001
2024
attempt_limit : 5
2002
2025
attempt_delay : 1000
@@ -2067,7 +2090,7 @@ jobs:
2067
2090
with :
2068
2091
action : actions/download-artifact@v4
2069
2092
with : |
2070
- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2093
+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
2071
2094
path: /${{ runner.temp }}/build
2072
2095
attempt_limit : 5
2073
2096
attempt_delay : 1000
@@ -2133,7 +2156,7 @@ jobs:
2133
2156
with :
2134
2157
action : actions/download-artifact@v4
2135
2158
with : |
2136
- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2159
+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
2137
2160
path: /${{ runner.temp }}/build
2138
2161
attempt_limit : 5
2139
2162
attempt_delay : 1000
@@ -2199,7 +2222,7 @@ jobs:
2199
2222
with :
2200
2223
action : actions/download-artifact@v4
2201
2224
with : |
2202
- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2225
+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
2203
2226
path: /${{ runner.temp }}/build
2204
2227
attempt_limit : 5
2205
2228
attempt_delay : 1000
@@ -2257,7 +2280,7 @@ jobs:
2257
2280
run : echo "::notice All good!"
2258
2281
2259
2282
system-test-public-api :
2260
- needs : [changes, build-test-images]
2283
+ needs : [changes, build-test-images, build-test-images-frontend ]
2261
2284
if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
2262
2285
timeout-minutes : 25 # if this timeout gets too small, then split the tests
2263
2286
name : " [sys] public api"
@@ -2286,7 +2309,7 @@ jobs:
2286
2309
with :
2287
2310
action : actions/download-artifact@v4
2288
2311
with : |
2289
- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2312
+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
2290
2313
path: /${{ runner.temp }}/build
2291
2314
attempt_limit : 5
2292
2315
attempt_delay : 1000
@@ -2317,7 +2340,7 @@ jobs:
2317
2340
run : ./ci/github/system-testing/public-api.bash clean_up
2318
2341
2319
2342
system-test-swarm-deploy :
2320
- needs : [changes, build-test-images]
2343
+ needs : [changes, build-test-images, build-test-images-frontend ]
2321
2344
if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
2322
2345
timeout-minutes : 30 # if this timeout gets too small, then split the tests
2323
2346
name : " [sys] deploy simcore"
@@ -2346,7 +2369,7 @@ jobs:
2346
2369
with :
2347
2370
action : actions/download-artifact@v4
2348
2371
with : |
2349
- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2372
+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
2350
2373
path: /${{ runner.temp }}/build
2351
2374
attempt_limit : 5
2352
2375
attempt_delay : 1000
@@ -2382,7 +2405,7 @@ jobs:
2382
2405
run : ./ci/github/system-testing/swarm-deploy.bash clean_up
2383
2406
2384
2407
system-test-e2e :
2385
- needs : [changes, build-test-images]
2408
+ needs : [changes, build-test-images, build-test-images-frontend ]
2386
2409
if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
2387
2410
timeout-minutes : 30 # if this timeout gets too small, then split the tests
2388
2411
name : " [sys] e2e"
@@ -2417,7 +2440,7 @@ jobs:
2417
2440
with :
2418
2441
action : actions/download-artifact@v4
2419
2442
with : |
2420
- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2443
+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
2421
2444
path: /${{ runner.temp }}/build
2422
2445
attempt_limit : 5
2423
2446
attempt_delay : 1000
@@ -2462,7 +2485,7 @@ jobs:
2462
2485
run : ./ci/github/system-testing/e2e.bash clean_up
2463
2486
2464
2487
system-test-e2e-playwright :
2465
- needs : [changes, build-test-images]
2488
+ needs : [changes, build-test-images, build-test-images-frontend ]
2466
2489
if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
2467
2490
timeout-minutes : 30 # if this timeout gets too small, then split the tests
2468
2491
name : " [sys] e2e-playwright"
@@ -2497,7 +2520,7 @@ jobs:
2497
2520
- name : download docker images
2498
2521
uses : actions/download-artifact@v4
2499
2522
with :
2500
- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2523
+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
2501
2524
path : /${{ runner.temp }}/build
2502
2525
- name : load docker images
2503
2526
run : make load-images local-src=/${{ runner.temp }}/build
@@ -2616,7 +2639,7 @@ jobs:
2616
2639
with :
2617
2640
action : actions/download-artifact@v4
2618
2641
with : |
2619
- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2642
+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
2620
2643
path: /${{ runner.temp }}/build
2621
2644
attempt_limit : 5
2622
2645
attempt_delay : 1000
0 commit comments