Skip to content

Commit 7f8801f

Browse files
committed
Create multi-platform images
1 parent cff591e commit 7f8801f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,31 @@ jobs:
2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v5
23-
- name: Log in to the Container registry
23+
24+
- name: Login to the container registry
2425
uses: docker/login-action@v3
2526
with:
2627
registry: ${{ env.REGISTRY }}
2728
username: ${{ github.actor }}
2829
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Set up QEMU
32+
uses: docker/setup-qemu-action@v3
33+
34+
- name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v3
36+
2937
- name: Process metadata (tags, labels)
3038
id: meta
3139
uses: docker/metadata-action@v5
3240
with:
3341
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
3443
- name: Build and push Docker image
3544
uses: docker/build-push-action@v6
3645
with:
3746
context: .
3847
push: true
3948
tags: ${{ steps.meta.outputs.tags }}
4049
labels: ${{ steps.meta.outputs.labels }}
50+
platforms: linux/amd64, linux/arm64

0 commit comments

Comments
 (0)