@@ -272,20 +272,43 @@ jobs:
272272 python : ["3.11"]
273273 os : [ubuntu-22.04]
274274 fail-fast : false
275- name : " [build] docker images"
275+ name : " [build] docker images (excluding frontend) "
276276 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
278288 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 :
289312 - uses : actions/checkout@v4
290313 - name : setup docker buildx
291314 id : buildx
@@ -300,11 +323,11 @@ jobs:
300323 run : |
301324 export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
302325 mkdir --parents /${{ runner.temp }}/build
303- make build local-dest=/${{ runner.temp }}/build
326+ make build local-dest=/${{ runner.temp }}/build target=static-webserver
304327 - name : upload build artifacts
305328 uses : actions/upload-artifact@v4
306329 with :
307- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
330+ name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-frontend
308331 path : /${{ runner.temp }}/build
309332
310333 unit-test-webserver-01 :
@@ -1868,7 +1891,7 @@ jobs:
18681891 with :
18691892 action : actions/download-artifact@v4
18701893 with : |
1871- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
1894+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
18721895 path: /${{ runner.temp }}/build
18731896 attempt_limit : 5
18741897 attempt_delay : 1000
@@ -1932,7 +1955,7 @@ jobs:
19321955 with :
19331956 action : actions/download-artifact@v4
19341957 with : |
1935- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
1958+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
19361959 path: /${{ runner.temp }}/build
19371960 attempt_limit : 5
19381961 attempt_delay : 1000
@@ -1996,7 +2019,7 @@ jobs:
19962019 with :
19972020 action : actions/download-artifact@v4
19982021 with : |
1999- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2022+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
20002023 path: /${{ runner.temp }}/build
20012024 attempt_limit : 5
20022025 attempt_delay : 1000
@@ -2067,7 +2090,7 @@ jobs:
20672090 with :
20682091 action : actions/download-artifact@v4
20692092 with : |
2070- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2093+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
20712094 path: /${{ runner.temp }}/build
20722095 attempt_limit : 5
20732096 attempt_delay : 1000
@@ -2133,7 +2156,7 @@ jobs:
21332156 with :
21342157 action : actions/download-artifact@v4
21352158 with : |
2136- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2159+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
21372160 path: /${{ runner.temp }}/build
21382161 attempt_limit : 5
21392162 attempt_delay : 1000
@@ -2199,7 +2222,7 @@ jobs:
21992222 with :
22002223 action : actions/download-artifact@v4
22012224 with : |
2202- name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2225+ name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend
22032226 path: /${{ runner.temp }}/build
22042227 attempt_limit : 5
22052228 attempt_delay : 1000
@@ -2257,7 +2280,7 @@ jobs:
22572280 run : echo "::notice All good!"
22582281
22592282 system-test-public-api :
2260- needs : [changes, build-test-images]
2283+ needs : [changes, build-test-images, build-test-images-frontend ]
22612284 if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
22622285 timeout-minutes : 25 # if this timeout gets too small, then split the tests
22632286 name : " [sys] public api"
@@ -2286,7 +2309,7 @@ jobs:
22862309 with :
22872310 action : actions/download-artifact@v4
22882311 with : |
2289- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2312+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
22902313 path: /${{ runner.temp }}/build
22912314 attempt_limit : 5
22922315 attempt_delay : 1000
@@ -2317,7 +2340,7 @@ jobs:
23172340 run : ./ci/github/system-testing/public-api.bash clean_up
23182341
23192342 system-test-swarm-deploy :
2320- needs : [changes, build-test-images]
2343+ needs : [changes, build-test-images, build-test-images-frontend ]
23212344 if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
23222345 timeout-minutes : 30 # if this timeout gets too small, then split the tests
23232346 name : " [sys] deploy simcore"
@@ -2346,7 +2369,7 @@ jobs:
23462369 with :
23472370 action : actions/download-artifact@v4
23482371 with : |
2349- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2372+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
23502373 path: /${{ runner.temp }}/build
23512374 attempt_limit : 5
23522375 attempt_delay : 1000
@@ -2382,7 +2405,7 @@ jobs:
23822405 run : ./ci/github/system-testing/swarm-deploy.bash clean_up
23832406
23842407 system-test-e2e :
2385- needs : [changes, build-test-images]
2408+ needs : [changes, build-test-images, build-test-images-frontend ]
23862409 if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
23872410 timeout-minutes : 30 # if this timeout gets too small, then split the tests
23882411 name : " [sys] e2e"
@@ -2417,7 +2440,7 @@ jobs:
24172440 with :
24182441 action : actions/download-artifact@v4
24192442 with : |
2420- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2443+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
24212444 path: /${{ runner.temp }}/build
24222445 attempt_limit : 5
24232446 attempt_delay : 1000
@@ -2462,7 +2485,7 @@ jobs:
24622485 run : ./ci/github/system-testing/e2e.bash clean_up
24632486
24642487 system-test-e2e-playwright :
2465- needs : [changes, build-test-images]
2488+ needs : [changes, build-test-images, build-test-images-frontend ]
24662489 if : ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
24672490 timeout-minutes : 30 # if this timeout gets too small, then split the tests
24682491 name : " [sys] e2e-playwright"
@@ -2497,7 +2520,7 @@ jobs:
24972520 - name : download docker images
24982521 uses : actions/download-artifact@v4
24992522 with :
2500- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2523+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
25012524 path : /${{ runner.temp }}/build
25022525 - name : load docker images
25032526 run : make load-images local-src=/${{ runner.temp }}/build
@@ -2616,7 +2639,7 @@ jobs:
26162639 with :
26172640 action : actions/download-artifact@v4
26182641 with : |
2619- name : docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2642+ pattern : docker-buildx-images-${{ runner.os }}-${{ github.sha }}-*
26202643 path: /${{ runner.temp }}/build
26212644 attempt_limit : 5
26222645 attempt_delay : 1000
0 commit comments