From ea7947966f27962d951ef67e810c237ec7d06a76 Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Fri, 6 Dec 2024 18:49:34 +0100 Subject: [PATCH] separate job to build static-webserver --- .github/workflows/ci-testing-deploy.yml | 49 ++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-testing-deploy.yml b/.github/workflows/ci-testing-deploy.yml index e2eabc80994..7d5013032fe 100644 --- a/.github/workflows/ci-testing-deploy.yml +++ b/.github/workflows/ci-testing-deploy.yml @@ -300,7 +300,54 @@ jobs: run: | export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash) mkdir --parents /${{ runner.temp }}/build - make build local-dest=/${{ runner.temp }}/build + make build local-dest=/${{ runner.temp }}/build exclude=static-webserver + - name: upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: docker-buildx-images-${{ runner.os }}-${{ github.sha }} + path: /${{ runner.temp }}/build + + build-test-images-frontend: + # this step comes first, so that it is executed as first job in push calls + # in PR calls this step is anyway skipped + needs: changes + if: ${{ needs.changes.outputs.anything-js == 'true' || github.event_name == 'push' }} + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + matrix: + python: ["3.11"] + os: [ubuntu-22.04] + fail-fast: false + name: "[build] docker images" + steps: + - name: Remove unused software + run: | + echo "Available storage before:" + sudo df -h + echo + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf /opt/hostedtoolcache/CodeQL + echo "Available storage after:" + sudo df -h + echo + - uses: actions/checkout@v4 + - name: setup docker buildx + id: buildx + uses: docker/setup-buildx-action@v3 + with: + driver: docker-container + - name: expose github runtime for buildx + uses: crazy-max/ghaction-github-runtime@v3 + - name: show system environs + run: ./ci/helpers/show_system_versions.bash + - name: build images + run: | + export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash) + mkdir --parents /${{ runner.temp }}/build + make build local-dest=/${{ runner.temp }}/build target=static-webserver - name: upload build artifacts uses: actions/upload-artifact@v4 with: