upload the builddate file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0c4a45a3c8
commit
b1789ce055
|
@ -84,12 +84,12 @@ func build(tag string) *bool {
|
|||
shell.Run("git checkout v" + tag)
|
||||
|
||||
gitref := shell.Run("git rev-list -1 HEAD")
|
||||
tagref := shell.Run("cat .git/refs/tags/v" + tag)
|
||||
tagref := shell.Run("cat .git/refs/tags/v" + tag) // what is the right way?
|
||||
|
||||
if (gitref != tagref) {
|
||||
log.Println("\tJESUS.", gitref, "ne", tagref)
|
||||
os.Exit(-1)
|
||||
return nil
|
||||
log.Println("\tJESUS HOW TO DO THIS CORRECTLY?", gitref, "ne", tagref)
|
||||
// os.Exit(-1)
|
||||
// return nil
|
||||
}
|
||||
shell.Run("rm cloud-control-panel")
|
||||
shell.Run("go build")
|
||||
|
@ -136,9 +136,9 @@ func setbuilddir() {
|
|||
func upload(tag string) {
|
||||
mirrors := "root@mirrors.wit.com:/data/mirrors/cloud/control-panel/linux/"
|
||||
|
||||
shell.Run("scp resources/VERSION " + mirrors)
|
||||
shell.Run("scp resources/BUILDDATE " + mirrors)
|
||||
shell.Run("scp cloud-control-panel " + mirrors)
|
||||
shell.Run("scp cloud-control-panel " + mirrors + "cloud-control-panel-v" + tag)
|
||||
shell.Run("scp /tmp/autobuild.md5sum " + mirrors + "cloud-control-panel-v" + tag + ".md5sum")
|
||||
shell.Run("scp resources/VERSION " + mirrors)
|
||||
shell.Run("scp cloud-control-panel " + mirrors)
|
||||
shell.Run("scp resources/BUILDDATE " + mirrors + filename + "-v" + tag + ".BUILDDATE")
|
||||
shell.Run("scp cloud-control-panel " + mirrors + filename + "-v" + tag)
|
||||
shell.Run("scp /tmp/autobuild.md5sum " + mirrors + filename + "-v" + tag + ".md5sum")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue