From a118dd5b1bee49c7b1ea639c8116c412b1065f60 Mon Sep 17 00:00:00 2001 From: Khaja Omer <56000175+komer3@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:48:20 -0500 Subject: [PATCH] Update the REV var to use current branch name (#231) Co-authored-by: Khaja Omer --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 35b58bd7..1336358a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PLATFORM ?= linux/amd64 REGISTRY_NAME ?= index.docker.io IMAGE_NAME ?= linode/linode-blockstorage-csi-driver -REV := $(shell git describe --long --tags --dirty 2> /dev/null || echo "dev") +REV := $(shell git branch --show-current 2> /dev/null || echo "dev") IMAGE_VERSION ?= $(REV) IMAGE_TAG ?= $(REGISTRY_NAME)/$(IMAGE_NAME):$(IMAGE_VERSION) GOLANGCI_LINT_IMG := golangci/golangci-lint:v1.59-alpine