Set overrided version in drone config
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user