We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b94f10 commit d10a668Copy full SHA for d10a668
Makefile
@@ -25,14 +25,14 @@ EXTRA_GOFLAGS ?=
25
26
ifneq ($(DRONE_TAG),)
27
VERSION ?= $(subst v,,$(DRONE_TAG))
28
- GITEA_VERSION := $(VERSION)
+ GITEA_VERSION ?= $(VERSION)
29
else
30
ifneq ($(DRONE_BRANCH),)
31
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
32
33
VERSION ?= master
34
endif
35
- GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
+ GITEA_VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
36
37
38
LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
0 commit comments