diff --git a/hooks/build b/hooks/build index 63a18dc..ec43738 100644 --- a/hooks/build +++ b/hooks/build @@ -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" . diff --git a/hooks/push b/hooks/push new file mode 100644 index 0000000..70aaa11 --- /dev/null +++ b/hooks/push @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +echo "Image pushed via buildx" \ No newline at end of file