more attempts to auto-update
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
55499287b0
commit
065562a7de
5
Makefile
5
Makefile
|
@ -47,7 +47,10 @@ push:
|
|||
-git commit -a -s
|
||||
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 push --tags
|
||||
# https://mirrors.wit.com/cloud/control-panel/
|
||||
|
|
|
@ -22,13 +22,7 @@ var builddir string
|
|||
var homedir string
|
||||
|
||||
func main() {
|
||||
// os.Chdir("~/go/src/wit/cloud-control-panel")
|
||||
|
||||
// set epoch, version,
|
||||
// set build cloud-control-panel
|
||||
|
||||
// get build time
|
||||
// go build -ldflags
|
||||
// set build -ldflags for windows and macos
|
||||
// "
|
||||
// -X main.GITCOMMIT=${GITCOMMIT}
|
||||
// -X main.GOVERSION='${GOVERSION}'
|
||||
|
@ -38,20 +32,6 @@ func main() {
|
|||
|
||||
// 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 {
|
||||
build()
|
||||
os.Exit(0)
|
||||
|
@ -61,6 +41,10 @@ func main() {
|
|||
|
||||
|
||||
func build() {
|
||||
tags := shell.Run("git tag --list")
|
||||
log.Println(tags)
|
||||
os.Exit(0)
|
||||
|
||||
// shell.SetDelayInMsec(50)
|
||||
shell.Run("go get -v .")
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.6.21
|
||||
0.6.22
|
||||
|
|
Loading…
Reference in New Issue