diff --git a/.drone.yml b/.drone.yml index 7b63cc9d..61a87599 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,6 +37,8 @@ steps: - name: build image: golang:1.14 + environment: + GIT_TAG: ${DRONE_TAG} commands: - make ci-setup - make build-cross diff --git a/Makefile b/Makefile index 29a81976..37dfb147 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ export GO111MODULE=on ########## Tags ########## # get git tag -GIT_TAG := $(shell git describe --tags) +GIT_TAG ?= $(shell git describe --tags) ifeq ($(GIT_TAG),) GIT_TAG := $(shell git describe --always) endif