diff --git a/Makefile b/Makefile index b35b9edb..20818c19 100644 --- a/Makefile +++ b/Makefile @@ -91,7 +91,7 @@ KUSTOMIZE := $(TOOLS_BIN_DIR)/$(KUSTOMIZE_BIN)-$(KUSTOMIZE_VER) ##@ release: ## latest git tag for the commit, e.g., v0.3.10 -RELEASE_TAG ?= $(shell git describe --abbrev=0 2>/dev/null) +RELEASE_TAG ?= $(shell git describe --abbrev=0 --tags 2>/dev/null) ifneq (,$(findstring -,$(RELEASE_TAG))) PRE_RELEASE=true endif @@ -203,7 +203,7 @@ release-controlplane: $(RELEASE_DIR) manifests-controlplane ## Release control-p $(KUSTOMIZE) build controlplane/config/default > $(RELEASE_DIR)/control-plane-components.yaml generate-controlplane: $(CONTROLLER_GEN) - $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="$(shell pwd)/controlplane/..." + $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="$(shell pwd)/controlplane/..." docker-build-controlplane: manager-controlplane ## Build control-plane DOCKER_BUILDKIT=1 docker build --build-arg builder_image=$(GO_CONTAINER_IMAGE) --build-arg goproxy=$(GOPROXY) --build-arg TARGETARCH=$(ARCH) --build-arg package=./controlplane/main.go --build-arg ldflags="$(LDFLAGS)" . -t ${CONTROLPLANE_IMG}