diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 57f7aed0..dac8b94e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -203,10 +203,14 @@ jobs: run: | cp packages/docker/Dockerfile Dockerfile + # to enable buildx (multiplatform build) + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + - name: Build Docker image run: | docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}" docker.io - docker build --pull -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}" -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest" . + docker buildx build --platform linux/amd64,linux/arm64 --pull -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}" -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest" . docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}" docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest"