Skip to content

Commit 2c526fc

Browse files
authored
feat: docker build for arm (#1947)
1 parent 5d69c7c commit 2c526fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,9 @@ jobs:
886886
@semantic-release/[email protected]
887887
888888
889+
- name: Set up QEMU
890+
uses: docker/setup-qemu-action@v3
891+
889892
- name: Set up Docker Buildx
890893
uses: docker/setup-buildx-action@v3
891894

@@ -927,6 +930,7 @@ jobs:
927930
uses: docker/build-push-action@v5
928931
with:
929932
context: .
933+
platforms: ${{ github.ref == 'refs/heads/master' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
930934
tags: ${{ steps.meta.outputs.tags }}
931935
labels: ${{ steps.meta.outputs.labels }}
932936
# Only push if (there's a new release on main branch, or if building a non-main branch) and (Only run on non-PR events or only PRs that aren't from forks)

0 commit comments

Comments
 (0)