Skip to content

Commit c7644df

Browse files
authored
Merge pull request #8 from planetscale/joem/arm64-image
build arm64 docker images
2 parents 9a128c6 + d1ba9e8 commit c7644df

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
env:
5353
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
5454

55+
# setup qemu and buildx for cross-builds (arm64)
56+
- name: Set up QEMU (for arm64 builds)
57+
uses: docker/setup-qemu-action@v3
58+
- name: Set up Docker Buildx
59+
uses: docker/setup-buildx-action@v3
60+
5561
- name: Release
5662
run: |
5763
set -eou pipefail
@@ -61,8 +67,11 @@ jobs:
6167
6268
git reset --hard && git clean -ffdx && git pull
6369
64-
docker build -t "$image" .
65-
docker push "$image"
70+
docker buildx build \
71+
-t "$image" \
72+
--platform linux/amd64,linux/arm64 \
73+
--push \
74+
.
6675
6776
gh release create "v${version}" --target main --title "v${version}" --generate-notes
6877
env:

0 commit comments

Comments
 (0)