Set overrided version in drone config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2020-07-07 11:37:55 -07:00
parent 0684b15a44
commit 4aff294739
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,8 @@ steps:
- name: test
image: golang:1.12
environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands:
- make build
- make test
@ -47,6 +49,8 @@ trigger:
steps:
- name: build all binaries
image: golang:1.12
environment:
VERSION: ${DRONE_TAG:-${DRONE_COMMIT}}
commands:
- make all-linux

View File

@ -1,5 +1,5 @@
DOCKER_TAG ?= minitor-go-${USER}
export VERSION := $(shell git describe --tags --dirty)
VERSION ?= $(shell git describe --tags --dirty)
GOFILES = *.go
# Multi-arch targets are generated from this
TARGET_ALIAS = minitor-linux-amd64 minitor-linux-arm minitor-linux-arm64 minitor-darwin-amd64