CI/drone: use DRONE_TAG
This commit is contained in:
parent
32b7934f14
commit
acfa952b51
@ -37,6 +37,8 @@ steps:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.14
|
image: golang:1.14
|
||||||
|
environment:
|
||||||
|
GIT_TAG: ${DRONE_TAG}
|
||||||
commands:
|
commands:
|
||||||
- make ci-setup
|
- make ci-setup
|
||||||
- make build-cross
|
- make build-cross
|
||||||
|
2
Makefile
2
Makefile
@ -16,7 +16,7 @@ export GO111MODULE=on
|
|||||||
########## Tags ##########
|
########## Tags ##########
|
||||||
|
|
||||||
# get git tag
|
# get git tag
|
||||||
GIT_TAG := $(shell git describe --tags)
|
GIT_TAG ?= $(shell git describe --tags)
|
||||||
ifeq ($(GIT_TAG),)
|
ifeq ($(GIT_TAG),)
|
||||||
GIT_TAG := $(shell git describe --always)
|
GIT_TAG := $(shell git describe --always)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user