summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-12-24 00:00:48 +0100
committerGitHub <noreply@github.com>2016-12-24 00:00:48 +0100
commit6aacf4d2f09631359b99df562b4bf31dcef44ea3 (patch)
tree2a551dcc0652a74d2da77cafe1d4233b13f12e85 /Makefile
parent7b67347104629872d4410a61ce8f78eebae40131 (diff)
downloadgitea-6aacf4d2f09631359b99df562b4bf31dcef44ea3.tar.gz
gitea-6aacf4d2f09631359b99df562b4bf31dcef44ea3.zip
Properly handle drone tags and release/* branches (#466)v1.0.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c3bc4e3ce7..7fd49bb655 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