From 7a0a2758f3f3f623e57ed2e54c0e7c4b789d892b Mon Sep 17 00:00:00 2001 From: deepakm-ntnx Date: Wed, 22 Nov 2023 11:36:21 -0800 Subject: [PATCH] fixed docker-build` --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1ef832a02a..0060a7a8d1 100644 --- a/Makefile +++ b/Makefile @@ -244,15 +244,15 @@ run: manifests generate fmt vet ## Run a controller from your host. .PHONY: docker-build docker-build: $(KO) ## Build docker image with the manager. - KO_DOCKER_REPO=ko.local $(KO) build -B --platform=${PLATFORMS} -t ${IMG_TAG} -L . + KO_DOCKER_REPO=ko.local $(KO) build -B --platform=${PLATFORMS} -t ${IMG_TAG} -L ./cmd .PHONY: docker-push docker-push: $(KO) ## Push docker image with the manager. - KO_DOCKER_REPO=${IMG_REPO} $(KO) build --bare --platform=${PLATFORMS} -t ${IMG_TAG} . + KO_DOCKER_REPO=${IMG_REPO} $(KO) build --bare --platform=${PLATFORMS} -t ${IMG_TAG} ./cmd .PHONY: docker-push-kind docker-push-kind: $(KO) ## Make docker image available to kind cluster. - GOOS=linux GOARCH=${shell go env GOARCH} KO_DOCKER_REPO=ko.local ${KO} build -B -t ${IMG_TAG} -L . + GOOS=linux GOARCH=${shell go env GOARCH} KO_DOCKER_REPO=ko.local ${KO} build -B -t ${IMG_TAG} -L ./cmd docker tag ko.local/cluster-api-provider-nutanix:${IMG_TAG} ${IMG} kind load docker-image --name ${KIND_CLUSTER_NAME} ${IMG} @@ -332,7 +332,7 @@ cluster-templates: $(KUSTOMIZE) ## Generate cluster templates for all flavors .PHONY: docker-build-e2e docker-build-e2e: $(KO) ## Build docker image with the manager with e2e tag. - KO_DOCKER_REPO=ko.local $(KO) build -B --platform=${PLATFORMS_E2E} -t e2e -L . + KO_DOCKER_REPO=ko.local $(KO) build -B --platform=${PLATFORMS_E2E} -t e2e -L ./cmd docker tag ko.local/cluster-api-provider-nutanix:e2e ${IMG_REPO}:e2e .PHONY: prepare-local-clusterctl