From b00c8624063b2f23cb3e698f73bcb62d109b5cbf Mon Sep 17 00:00:00 2001 From: deviantony Date: Fri, 23 Aug 2024 08:32:19 +0200 Subject: [PATCH] hooks: update hooks --- hooks/build | 4 +--- hooks/push | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 hooks/push 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