CI/drone: use DRONE_TAG

pull/287/head
iwilltry42 4 years ago
parent 32b7934f14
commit acfa952b51
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 2
      .drone.yml
  2. 2
      Makefile

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

@ -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…
Cancel
Save