Skip to content

Commit 22f5b4d

Browse files
committed
🐳 chore(docker-publish): 多平台构建 amd64 & arm64
1 parent 30f17fd commit 22f5b4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
-
1919
name: Checkout
2020
uses: actions/checkout@v4
21+
-
22+
name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
-
25+
name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
2127
-
2228
name: Docker meta
2329
id: meta
@@ -35,6 +41,7 @@ jobs:
3541
name: Build and push
3642
uses: docker/build-push-action@v5
3743
with:
44+
platforms: linux/amd64,linux/arm64
3845
context: .
3946
push: ${{ github.event_name != 'pull_request' }}
4047
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)