diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-01-24 17:25:14 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-01-24 17:25:14 +0100 |
commit | fc55df9297f30f5e98d650c75cdd04eb1d0e0636 (patch) | |
tree | 705ee74e06b412ade9d52ce38f3742085743cb75 | |
parent | a7a2bf16e2910854c02b24b2fde4f15a91207c76 (diff) |
run separate builds for amd64 and arm64
The docker driver doesn't support multi-platform builds. This is a workaround.
-rw-r--r-- | .github/workflows/docker.yml | 13 |
1 files 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 |