Skip to content

Commit

Permalink
run separate builds for amd64 and arm64
Browse files Browse the repository at this point in the history
The docker driver doesn't support multi-platform builds. This is a workaround.
  • Loading branch information
HimbeerserverDE committed Jan 24, 2024
1 parent a7a2bf1 commit fc55df9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fc55df9

Please sign in to comment.