From 0d557b308357337bb894c4e13f35d7af00f117f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Tue, 3 Dec 2024 13:30:01 +0100 Subject: [PATCH] [multiarch push] --- Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 000b9a1..894880e 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,7 @@ VERSION=0.`git rev-list --count HEAD` -build: - docker build -t registry.domandoman.xyz/utils/serverchecker:manifest-amd64 --build-arg ARCH=amd64/ -f Dockerfile . - docker build -t registry.domandoman.xyz/utils/serverchecker:manifest-arm32v7 --build-arg ARCH=arm32v7/ -f Dockerfile . - docker build -t registry.domandoman.xyz/utils/serverchecker:manifest-arm64v8 --build-arg ARCH=arm64v8/ -f Dockerfile . - -push: - docker push registry.domandoman.xyz/utils/serverchecker:manifest-amd64 - docker push registry.domandoman.xyz/utils/serverchecker:manifest-arm32v7 - docker push registry.domandoman.xyz/utils/serverchecker:manifest-arm64v8 +all: + docker buildx build \ + --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ + --push \ + -t registry.domandoman.xyz/utils/serverchecker --build-arg VERSION=${VERSION} -f Dockerfile .