Skip to content

Commit 9376be0

Browse files
authored
Merge pull request kubernetes-sigs#10058 from cahillsf/fix-clusterctl-image-build-cmd
🌱 fix dockerfile for clusterctl build
2 parents a86fe31 + a053678 commit 9376be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ docker-build-in-memory-infrastructure: ## Build the docker image for in-memory i
829829
.PHONY: docker-build-clusterctl
830830
docker-build-clusterctl: ## Build the docker image for clusterctl
831831
## reads Dockerfile from stdin to avoid an incorrectly cached Dockerfile (https://github.com/moby/buildkit/issues/1368)
832-
cat ./Dockerfile | DOCKER_BUILDKIT=1 docker build --build-arg builder_image=$(GO_CONTAINER_IMAGE) --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg package=./cmd/clusterctl --build-arg ldflags="$(LDFLAGS)" -f ./cmd/clusterctl/Dockerfile . -t $(CLUSTERCTL_IMG)-$(ARCH):$(TAG) --file -
832+
cat ./cmd/clusterctl/Dockerfile | DOCKER_BUILDKIT=1 docker build --build-arg builder_image=$(GO_CONTAINER_IMAGE) --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg package=./cmd/clusterctl --build-arg ldflags="$(LDFLAGS)" . -t $(CLUSTERCTL_IMG)-$(ARCH):$(TAG) --file -
833833

834834
.PHONY: docker-build-test-extension
835835
docker-build-test-extension: ## Build the docker image for core controller manager

0 commit comments

Comments
 (0)