migrate to go multi arch builder

This commit is contained in:
RouxAntoine 2022-01-16 22:56:08 +01:00
parent c2d64b9fc7
commit 61550610ab
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -5,19 +5,14 @@ REGISTRY_IP=docker.registry
# linux/arm/v6 # linux/arm/v6
# linux/arm64 # linux/arm64
# linux/amd64 # linux/amd64
PLATFORM=linux/amd64 PLATFORM=linux/arm64,linux/amd64
#OCI_CLI=nerdctl #VERBOSITY=info
OCI_CLI=docker VERBOSITY=debug
#OCI_CLI_BUILD=$(OCI_CLI)
OCI_CLI_BUILD=$(OCI_CLI) buildx
## build ## build
shell_build_image = $(OCI_CLI_BUILD) build --platform $(PLATFORM) -t $(REGISTRY_IP):5000/$(1) .; \
$(OCI_CLI) push $(REGISTRY_IP):5000/$(1);
imageKeepalived: imageKeepalived:
$(call shell_build_image,keepalived-k8s) $(shell docker-multi-arch-builder build -n keepalived-k8s --platforms $(PLATFORM) -v $(VERBOSITY))
## management ## management