Skip to content

Commit 04e8d00

Browse files
committed
Use buildx for docker builder
1 parent 363d013 commit 04e8d00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ $(NPD_NAME_VERSION)-%.tar.gz: $(ALL_BINARIES) test/e2e-install.sh
241241
build-binaries: $(ALL_BINARIES)
242242

243243
build-container: clean Dockerfile
244+
docker buildx create --use
244245
docker buildx build --platform $(DOCKER_PLATFORMS) -t $(IMAGE) --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg LOGCOUNTER=$(LOGCOUNTER) .
245246

246247
$(TARBALL): ./bin/node-problem-detector ./bin/log-counter ./bin/health-checker ./test/bin/problem-maker
@@ -266,6 +267,7 @@ ifneq (,$(findstring gcr.io,$(REGISTRY)))
266267
gcloud auth configure-docker
267268
endif
268269
# Build should be cached from build-container
270+
docker buildx create --use
269271
docker buildx build --push --platform $(DOCKER_PLATFORMS) -t $(IMAGE) --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg LOGCOUNTER=$(LOGCOUNTER) .
270272

271273
push-tar: build-tar

0 commit comments

Comments
 (0)