From 04e8d009d49e87467c8ea5e0d6fb1990fc46c921 Mon Sep 17 00:00:00 2001 From: Sonu Kumar Singh Date: Tue, 5 Jul 2022 09:37:52 +0530 Subject: [PATCH] Use buildx for docker builder --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 5c5df779..db99831a 100644 --- a/Makefile +++ b/Makefile @@ -241,6 +241,7 @@ $(NPD_NAME_VERSION)-%.tar.gz: $(ALL_BINARIES) test/e2e-install.sh build-binaries: $(ALL_BINARIES) build-container: clean Dockerfile + docker buildx create --use docker buildx build --platform $(DOCKER_PLATFORMS) -t $(IMAGE) --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg LOGCOUNTER=$(LOGCOUNTER) . $(TARBALL): ./bin/node-problem-detector ./bin/log-counter ./bin/health-checker ./test/bin/problem-maker @@ -266,6 +267,7 @@ ifneq (,$(findstring gcr.io,$(REGISTRY))) gcloud auth configure-docker endif # Build should be cached from build-container + docker buildx create --use docker buildx build --push --platform $(DOCKER_PLATFORMS) -t $(IMAGE) --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg LOGCOUNTER=$(LOGCOUNTER) . push-tar: build-tar