Skip to content

Commit

Permalink
ci: build archive-all target for testing
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Feb 9, 2024
1 parent 3b37ffb commit ba2d991
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
run: |
docker run --rm --platform ${{ matrix.platform }} ${{ matrix.dockerfile }}:local
build:
build-image:
runs-on: ubuntu-latest
needs:
- validate
Expand Down Expand Up @@ -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

0 comments on commit ba2d991

Please sign in to comment.