From d07c08635d786cfd3bf7da614fefd053d6050770 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Wed, 28 Aug 2024 08:14:04 -0400 Subject: [PATCH 1/3] Fix #245 - Build ARM64 image. --- .github/workflows/publish-docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 1a186015..12259d90 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -20,6 +20,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Extract metadata (tags, labels) for Docker @@ -31,6 +33,7 @@ jobs: uses: docker/build-push-action@v6.6.1 with: push: false + platforms: linux/amd64,linux/arm64 load: true tags: ${{ env.TEST_WEAVER_TAG }} labels: ${{ steps.meta.outputs.labels }} @@ -48,6 +51,7 @@ jobs: if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') with: push: true + platforms: linux/amd64,linux/arm64 provenance: mode=max sbom: true tags: ${{ steps.meta.outputs.tags }} From 37034840835c0ec953c68ec1835fea88e26a6168 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Wed, 28 Aug 2024 08:17:52 -0400 Subject: [PATCH 2/3] Attempt to work around: https://github.com/docker/buildx/issues/59 --- .github/workflows/publish-docker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 12259d90..0572387f 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -34,7 +34,6 @@ jobs: with: push: false platforms: linux/amd64,linux/arm64 - load: true tags: ${{ env.TEST_WEAVER_TAG }} labels: ${{ steps.meta.outputs.labels }} - name: Test From 573993c55c310234e15a9bf11632c910f4ffe045 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Wed, 28 Aug 2024 11:10:13 -0400 Subject: [PATCH 3/3] Only build arm64 on release. --- .github/workflows/publish-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 0572387f..04e0743e 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -33,7 +33,7 @@ jobs: uses: docker/build-push-action@v6.6.1 with: push: false - platforms: linux/amd64,linux/arm64 + load: true tags: ${{ env.TEST_WEAVER_TAG }} labels: ${{ steps.meta.outputs.labels }} - name: Test