more attempts to track version and build time
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
77c4c9d69e
commit
1c3040c4e9
8
Makefile
8
Makefile
|
@ -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 (?)
|
||||
|
|
Loading…
Reference in New Issue