mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 01:02:42 +08:00
Added build script written in go that adds build symbols for version, commit and build date
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user