Skip to content

Commit 22ba287

Browse files
committed
Build and push multi-arch Docker images
1 parent fdce066 commit 22ba287

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/deploy-image.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
2329
- name: Login to DockerHub
2430
if: github.event_name != 'pull_request'
2531
uses: docker/login-action@v3
@@ -45,10 +51,17 @@ jobs:
4551
type=raw,value=latest
4652
type=ref,event=tag
4753
48-
- name: Build and push Docker image
54+
- name: Build and push multi-arch Docker images
4955
uses: docker/build-push-action@v6
5056
with:
5157
context: .
58+
platforms: |
59+
linux/amd64,
60+
linux/arm64,
61+
linux/arm/v7,
62+
linux/ppc64le,
63+
linux/s390x
5264
push: ${{ github.event_name != 'pull_request' }}
65+
pull: true
5366
tags: ${{ steps.meta.outputs.tags }}
5467
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)