From fc55df9297f30f5e98d650c75cdd04eb1d0e0636 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Wed, 24 Jan 2024 17:25:14 +0100 Subject: [PATCH] run separate builds for amd64 and arm64 The docker driver doesn't support multi-platform builds. This is a workaround. --- .github/workflows/docker.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3fa067a..4b1b75a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -33,11 +33,20 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image + - name: Build and push Docker image (amd64) uses: docker/build-push-action@v5 with: context: . push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 + + - name: Build and push Docker image (arm64) + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/arm64