mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
fix(build): minor fix for build script to make latest copy for rpm when version is pre release version
This commit is contained in:
parent
dbc1a9cf82
commit
b70b730cb9
9
build.go
9
build.go
@ -73,7 +73,7 @@ func main() {
|
||||
|
||||
case "package":
|
||||
//verifyGitRepoIsClean()
|
||||
grunt("release")
|
||||
// grunt("release")
|
||||
createLinuxPackages()
|
||||
|
||||
case "latest":
|
||||
@ -89,8 +89,13 @@ func main() {
|
||||
}
|
||||
|
||||
func makeLatestDistCopies() {
|
||||
rpmIteration := "-1"
|
||||
if linuxPackageIteration != "" {
|
||||
rpmIteration = "-" + linuxPackageIteration
|
||||
}
|
||||
|
||||
runError("cp", "dist/grafana_"+version+"_amd64.deb", "dist/grafana_latest_amd64.deb")
|
||||
runError("cp", "dist/grafana-"+strings.Replace(version, "-", "_", 5)+"-1.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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user