use GIT_TAG to override Version
This commit is contained in:
parent
b5b7272603
commit
40555818b1
@ -1,3 +1,3 @@
|
||||
#! /bin/sh
|
||||
set -ex
|
||||
go build -o dist/ -trimpath -ldflags "-X main.Version=$(git describe --always --dirty)" $*
|
||||
go build -o dist/ -trimpath -ldflags "-X main.Version=${GIT_TAG:-$(git describe --always --dirty)}" $*
|
||||
|
Loading…
Reference in New Issue
Block a user