Skip to content

Commit

Permalink
Add multiplatform build hook
Browse files Browse the repository at this point in the history
Create buildx context

push from the build hook because it's a multiplatform buildx build

push fails as buildx already pushes
  • Loading branch information
MattGrundy committed Jun 12, 2024
1 parent 7bb30dc commit fe1e58b
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 fe1e58b

Please sign in to comment.