From f87c3c575c748b76b33fcedde768bdc25f827c18 Mon Sep 17 00:00:00 2001 From: steebchen Date: Wed, 14 Aug 2024 15:56:18 +0100 Subject: [PATCH] buildx, cross-platform and cache --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3e8127e7e8..a4c82c1f69 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,6 +26,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up Docker buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry uses: docker/login-action@v3 with: @@ -44,12 +47,17 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: ./Dockerfile push: true + platforms: | + linux/amd64 + linux/arm64 + file: ./Dockerfile tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | PATHFINDER_FORCE_VERSION=v0.14.1-cartridge + cache-from: type=gha + cache-to: type=gha,mode=max` - name: Generate artifact attestation uses: actions/attest-build-provenance@v1