feat(docker): Add build number.

This commit is contained in:
Bo-Yi Wu
2017-12-19 10:12:27 +08:00
parent fdc76c4f08
commit 8b5adb6493
3 changed files with 17 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*")
SOURCES ?= $(shell find . -name "*.go" -type f)
TAGS ?=
LDFLAGS ?= -X 'main.Version=$(VERSION)'
LDFLAGS ?= -X 'main.Version=$(VERSION)' -X 'main.BuildNum=$(DRONE_BUILD_NUMBER)'
TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'tempdir')
ifneq ($(shell uname), Darwin)