Skip to content

Commit 329a2ef

Browse files
Enable multi-arch Docker builds
1 parent 4e8d35f commit 329a2ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
2427
- name: Set up Docker Buildx
2528
uses: docker/setup-buildx-action@v3
2629

@@ -49,6 +52,8 @@ jobs:
4952
context: .
5053
file: Dockerfile
5154
push: ${{ github.event_name != 'pull_request' }}
55+
load: ${{ github.event_name == 'pull_request' }}
56+
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
5257
tags: ${{ steps.meta.outputs.tags }}
5358
labels: ${{ steps.meta.outputs.labels }}
5459
cache-from: type=gha

0 commit comments

Comments
 (0)