Skip to content

Commit c152d01

Browse files
committed
Enhance GitHub Actions workflow by adding QEMU setup and multi-platform support for Docker builds
1 parent 6a6c41e commit c152d01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/preview.yml

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
run: |
2424
echo "REPO_NAME=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
2525
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
2629
- name: Set up Docker Buildx
2730
uses: docker/setup-buildx-action@v3
2831

@@ -38,6 +41,7 @@ jobs:
3841
with:
3942
context: .
4043
push: true
44+
platforms: linux/amd64,linux/arm64
4145
tags: ghcr.io/${{ steps.repo-name.outputs.REPO_NAME }}/pr-${{ github.event.pull_request.number }}:latest
4246

4347
- name: Comment on PR

0 commit comments

Comments
 (0)