Skip to content

Commit

Permalink
Merge pull request #41 from deskpro/mg/arm
Browse files Browse the repository at this point in the history
Add multiplatform build hook
  • Loading branch information
MattGrundy authored Jun 12, 2024
2 parents 772f997 + fe1e58b commit d66b510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
docker buildx create --name multiarch --driver docker-container --use
docker buildx build --platform linux/arm64,linux/amd64 --build-arg BUILDKIT_MULTI_PLATFORM=1 -f $DOCKERFILE_PATH -t $IMAGE_NAME --push .
2 changes: 2 additions & 0 deletions hooks/push
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo "Nothing to push at this stage, already pushed as part of the multiplatform build step"

0 comments on commit d66b510

Please sign in to comment.