From ba2d991b6e61936ea6dc6fba8c594d3a22c83608 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:48:22 +0100 Subject: [PATCH] ci: build archive-all target for testing Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3739f1b..7369e8d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,7 +193,7 @@ jobs: run: | docker run --rm --platform ${{ matrix.platform }} ${{ matrix.dockerfile }}:local - build: + build-image: runs-on: ubuntu-latest needs: - validate @@ -254,3 +254,36 @@ jobs: *.cache-from=type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}-${{ matrix.target }} *.cache-from=type=gha,scope=${{ env.CACHE_GHA_SCOPE }}-${{ matrix.target }} *.cache-to=type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}-${{ matrix.target }} + + build-archive: + runs-on: ubuntu-latest + needs: + - validate + - test + - e2e + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + config: .github/buildkit.toml + buildkitd-flags: --allow-insecure-entitlement=security.insecure + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Build + uses: docker/bake-action@v4 + with: + targets: archive-all + set: | + *.cache-from=type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}-archive + *.cache-to=type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}-archive + *.output=./bin,platform-split=false + - + name: List artifacts + run: | + tree -nh ./bin