internal/common: introduce git revision and rpm version
The variables are set to the git revision from which the build is triggered and rpm version from the spec file, if it is build using RPM. This can be later used to query exact source version while running osbuild-composer. It is necessary to use both, because none of them is available in all possible scenarios. Use either git-rev (preferably) or RPM version (NEVRA) instead of the "devel" build type. It was just a placeholder.
This commit is contained in:
parent
c8032c7bbc
commit
d7d4e02c8c
3 changed files with 36 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ func (api *API) statusHandler(writer http.ResponseWriter, request *http.Request,
|
|||
DBVersion: "0",
|
||||
SchemaVersion: "0",
|
||||
Backend: "osbuild-composer",
|
||||
Build: "devel",
|
||||
Build: common.BuildVersion(),
|
||||
Messages: make([]string, 0),
|
||||
})
|
||||
common.PanicOnError(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue