migrate to go multi arch builder
This commit is contained in:
parent
c2d64b9fc7
commit
61550610ab
13
Makefile
13
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user