Skip to content

Commit

Permalink
feat: multiplatform docker build (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ authored Dec 9, 2024
1 parent 57a480f commit 8860da5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8860da5

Please sign in to comment.