more attempts to track version and build time

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-06 20:08:36 -07:00
parent 77c4c9d69e
commit 1c3040c4e9
2 changed files with 7 additions and 3 deletions

View File

@ -13,6 +13,9 @@ run:
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.GOVERSION='${GOVERSION}' -X main.BUILDTIME='${BUILDTIME}' -X main.VERSION=${VERSION}"
./cloud-control-panel
build:
go build -ldflags "-X main.GITCOMMIT=${GITCOMMIT} -X main.VERSION=${VERSION}"
default-config: config-delete
echo loading the test config
./cloud-control-panel --defaultconfig
@ -44,13 +47,14 @@ push:
-git commit -a -s
git push --all
tag-version:
tag-version: build
git tag v${VERSION}
git push --tags
# https://mirrors.wit.com/cloud/control-panel/
scp VERSION root@mirrors.wit.com:/data/mirrors/cloud/control-panel/linux/
# date +%s > resources/BUILDDATE
scp resources/BUILDDATE root@mirrors.wit.com:/data/mirrors/cloud/control-panel/linux/
scp cloud-control-panel root@mirrors.wit.com:/data/mirrors/cloud/control-panel/linux/
scp cloud-control-panel root@mirrors.wit.com:/data/mirrors/cloud/control-panel/linux/cloud-control-panel-v${VERSION}
scp README root@mirrors.wit.com:/data/mirrors/cloud/control-panel/
# should update every go dependancy (?)

View File

@ -1 +1 @@
0.6.17
0.6.18