mirror of
https://github.com/Luzifer/duplicity-backup.git
synced 2024-11-08 07:00:09 +00:00
Added version writing to install / gobuilder
This commit is contained in:
parent
0b8f0d27c2
commit
3434057427
2 changed files with 7 additions and 0 deletions
4
.gobuilder.yml
Normal file
4
.gobuilder.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
build_matrix:
|
||||
general:
|
||||
ldflags:
|
||||
- "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
3
Makefile
3
Makefile
|
@ -15,3 +15,6 @@ test:
|
|||
--exclude=bindata.go \
|
||||
--exclude=configfile_test.go \
|
||||
-D errcheck
|
||||
|
||||
install:
|
||||
go install -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||
|
|
Loading…
Reference in a new issue