Commit 97b304ab by Torkel Ödegaard

build(): added unix timestamp to iteration builds

parent 49a1d441
...@@ -103,7 +103,7 @@ func makeLatestDistCopies() { ...@@ -103,7 +103,7 @@ func makeLatestDistCopies() {
rpmIteration = "-" + linuxPackageIteration rpmIteration = "-" + linuxPackageIteration
} }
runError("cp", "dist/grafana_"+version+"_amd64.deb", "dist/grafana_latest_amd64.deb") runError("cp", "dist/grafana_"+linuxPackageVersion+linuxPackageIteration+"_amd64.deb", "dist/grafana_latest_amd64.deb")
runError("cp", "dist/grafana-"+linuxPackageVersion+rpmIteration+".x86_64.rpm", "dist/grafana-latest-1.x86_64.rpm") runError("cp", "dist/grafana-"+linuxPackageVersion+rpmIteration+".x86_64.rpm", "dist/grafana-latest-1.x86_64.rpm")
runError("cp", "dist/grafana-"+version+".linux-x64.tar.gz", "dist/grafana-latest.linux-x64.tar.gz") runError("cp", "dist/grafana-"+version+".linux-x64.tar.gz", "dist/grafana-latest.linux-x64.tar.gz")
} }
...@@ -133,6 +133,11 @@ func readVersionFromPackageJson() { ...@@ -133,6 +133,11 @@ func readVersionFromPackageJson() {
if len(parts) > 1 { if len(parts) > 1 {
linuxPackageVersion = parts[0] linuxPackageVersion = parts[0]
linuxPackageIteration = parts[1] linuxPackageIteration = parts[1]
if linuxPackageIteration != "" {
// add timestamp to iteration
linuxPackageIteration = fmt.Sprintf("%s%v", linuxPackageIteration, time.Now().Unix())
}
log.Println(fmt.Sprintf("teration %v", linuxPackageIteration))
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"company": "Coding Instinct AB" "company": "Coding Instinct AB"
}, },
"name": "grafana", "name": "grafana",
"version": "3.0.0-pre1", "version": "3.0.0-pre",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "http://github.com/grafana/grafana.git" "url": "http://github.com/grafana/grafana.git"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment