From 61550610ab8e8db8af6e89b7225fd178509ff27b Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Sun, 16 Jan 2022 22:56:08 +0100 Subject: [PATCH] migrate to go multi arch builder --- Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index faf2966..5d11233 100644 --- a/Makefile +++ b/Makefile @@ -5,19 +5,14 @@ REGISTRY_IP=docker.registry # linux/arm/v6 # linux/arm64 # linux/amd64 -PLATFORM=linux/amd64 -#OCI_CLI=nerdctl -OCI_CLI=docker -#OCI_CLI_BUILD=$(OCI_CLI) -OCI_CLI_BUILD=$(OCI_CLI) buildx +PLATFORM=linux/arm64,linux/amd64 +#VERBOSITY=info +VERBOSITY=debug ## build -shell_build_image = $(OCI_CLI_BUILD) build --platform $(PLATFORM) -t $(REGISTRY_IP):5000/$(1) .; \ - $(OCI_CLI) push $(REGISTRY_IP):5000/$(1); - imageKeepalived: - $(call shell_build_image,keepalived-k8s) + $(shell docker-multi-arch-builder build -n keepalived-k8s --platforms $(PLATFORM) -v $(VERBOSITY)) ## management