Skip to content

Commit

Permalink
fixed docker-build`
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Nov 22, 2023
1 parent 497a8e3 commit 7a0a275
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a0a275

Please sign in to comment.