Skip to content

Commit

Permalink
hooks: update hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantony committed Aug 23, 2024
1 parent 27991a1 commit b00c862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/bin/env bash

echo "Building image: $IMAGE_NAME"

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap

docker buildx build --platform=linux/arm64,linux/amd64 -t "$IMAGE_NAME" -f "$DOCKERFILE_PATH" .
docker buildx build --push --platform=linux/arm64,linux/amd64 -t "$IMAGE_NAME" -f "$DOCKERFILE_PATH" .
3 changes: 3 additions & 0 deletions hooks/push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "Image pushed via buildx"

0 comments on commit b00c862

Please sign in to comment.