From 2e85c54789ef08d6416297990d6dc9b6e677575c Mon Sep 17 00:00:00 2001 From: Yann Soubeyrand Date: Fri, 26 Jul 2024 11:02:23 +0200 Subject: [PATCH] ci: build a multi-platform container image --- .github/workflows/workflow.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8eb0e4a..404c43a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -38,12 +38,18 @@ jobs: with: images: | ghcr.io/camptocamp/kwkhtmltopdf - + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build + Push kwkhtmltopdf - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta-kwkhtmltopdf.outputs.tags }} labels: ${{ steps.meta-kwkhtmltopdf.outputs.labels }}