-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiarch container images (amd64/arm64)
Container images built with support for the ARM architecture perform much better on Apple Silicon laptops.
- Loading branch information
1 parent
7647bff
commit 7f5f2dd
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
docker run --privileged --rm tonistiigi/binfmt --install all | ||
|
||
docker buildx create --use default | ||
|
||
docker buildx build \ | ||
--push \ | ||
--tag "$DOCKER_REPO":"$DOCKER_TAG" \ | ||
--platform linux/amd64,linux/arm64 \ | ||
--file Dockerfile .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
# This hook is empty because the image was pushed to the registry in the build hook |