1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-02 07:38:35 +00:00

Properly handle drone tags and release/* branches (#466)

This commit is contained in:
Thomas Boerger
2016-12-24 00:00:48 +01:00
committed by GitHub
parent 7b67347104
commit 6aacf4d2f0
3 changed files with 29 additions and 11 deletions

View File

@@ -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