aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c3bc4e3ce..7fd49bb65 100644
--- a/Makefile
+++ b/Makefile
@@ -15,10 +15,10 @@ SOURCES ?= $(shell find . -name "*.go" -type f)
TAGS ?=
ifneq ($(DRONE_TAG),)
- VERSION ?= $(DRONE_TAG)
+ VERSION ?= $(subst v,,$(DRONE_TAG))
else
ifneq ($(DRONE_BRANCH),)
- VERSION ?= $(DRONE_BRANCH)
+ VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
else
VERSION ?= master
endif