more attempts to auto-update

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-06 21:43:14 -07:00
parent 55499287b0
commit 065562a7de
3 changed files with 10 additions and 23 deletions

View File

@ -47,7 +47,10 @@ push:
-git commit -a -s -git commit -a -s
git push --all git push --all
tag-version: build tag-version:
# git push --delete origin v0.6.15
rm cloud-control-panel
make build
git tag v${VERSION} git tag v${VERSION}
git push --tags git push --tags
# https://mirrors.wit.com/cloud/control-panel/ # https://mirrors.wit.com/cloud/control-panel/

View File

@ -22,13 +22,7 @@ var builddir string
var homedir string var homedir string
func main() { func main() {
// os.Chdir("~/go/src/wit/cloud-control-panel") // set build -ldflags for windows and macos
// set epoch, version,
// set build cloud-control-panel
// get build time
// go build -ldflags
// " // "
// -X main.GITCOMMIT=${GITCOMMIT} // -X main.GITCOMMIT=${GITCOMMIT}
// -X main.GOVERSION='${GOVERSION}' // -X main.GOVERSION='${GOVERSION}'
@ -38,20 +32,6 @@ func main() {
// upload binary to mirrors.wit.com/cloud/control-panel // upload binary to mirrors.wit.com/cloud/control-panel
setupUser()
log.Println("homedir", homedir)
log.Println("builddir", builddir)
log.Println("filename", filename)
shell.Run("pwd")
s, _ := os.Getwd()
log.Println("Getwd()", s)
os.Chdir(builddir)
log.Println("Getwd()", s)
shell.Run("pwd")
for { for {
build() build()
os.Exit(0) os.Exit(0)
@ -61,6 +41,10 @@ func main() {
func build() { func build() {
tags := shell.Run("git tag --list")
log.Println(tags)
os.Exit(0)
// shell.SetDelayInMsec(50) // shell.SetDelayInMsec(50)
shell.Run("go get -v .") shell.Run("go get -v .")

View File

@ -1 +1 @@
0.6.21 0.6.22