Skip to content

Commit 656b3ec

Browse files
Update build-and-publish.yml
1 parent a907d35 commit 656b3ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
- name: Checkout repository
2727
uses: actions/checkout@v4
2828

29+
# Add this step to set up QEMU for multi-arch builds
30+
- name: Set up QEMU
31+
uses: docker/setup-qemu-action@v3
32+
2933
- name: Set up Docker Buildx
3034
uses: docker/setup-buildx-action@v3
3135

@@ -53,6 +57,8 @@ jobs:
5357
uses: docker/build-push-action@v5
5458
with:
5559
context: ./${{ matrix.service }}
60+
# Add the platforms key to build for amd64 and arm64
61+
platforms: linux/amd64, linux/arm64
5662
push: ${{ github.event_name != 'pull_request' }}
5763
tags: ${{ steps.meta.outputs.tags }}
5864
labels: ${{ steps.meta.outputs.labels }}
@@ -91,4 +97,4 @@ jobs:
9197
9298
- name: Show logs if failed
9399
if: failure()
94-
run: docker-compose logs
100+
run: docker-compose logs

0 commit comments

Comments
 (0)