Added build script written in go that adds build symbols for version, commit and build date

This commit is contained in:
Torkel Ödegaard
2015-01-05 10:46:58 +01:00
parent 6ebf766342
commit d06174fb56
7 changed files with 276 additions and 9 deletions

View File

@ -63,6 +63,11 @@ func getFrontendSettings(c *middleware.Context) (map[string]interface{}, error)
jsonObj := map[string]interface{}{
"datasources": datasources,
"appSubUrl": setting.AppSubUrl,
"buildInfo": map[string]interface{}{
"version": setting.BuildVersion,
"commit": setting.BuildCommit,
"buildstamp": setting.BuildStamp,
},
}
return jsonObj, nil