Skip to content

Commit

Permalink
Merge pull request #8 from planetscale/joem/arm64-image
Browse files Browse the repository at this point in the history
build arm64 docker images
  • Loading branch information
joemiller authored Aug 19, 2024
2 parents 9a128c6 + d1ba9e8 commit c7644df
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# setup qemu and buildx for cross-builds (arm64)
- name: Set up QEMU (for arm64 builds)
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Release
run: |
set -eou pipefail
Expand All @@ -61,8 +67,11 @@ jobs:
git reset --hard && git clean -ffdx && git pull
docker build -t "$image" .
docker push "$image"
docker buildx build \
-t "$image" \
--platform linux/amd64,linux/arm64 \
--push \
.
gh release create "v${version}" --target main --title "v${version}" --generate-notes
env:
Expand Down

0 comments on commit c7644df

Please sign in to comment.