Worker/koji-finalize: include composer and deps version in manifest MD
Include the osbuild-composer and its dependencies versions in the extra metadata associated with the Manifest output when importing it to Koji. This will make it possible to pin-point the exact version combination which was used to generate the osbuild manifest used to built the image imported to Koji. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
285cd30af2
commit
c27cf0253d
2 changed files with 42 additions and 7 deletions
|
|
@ -130,12 +130,25 @@ type ImageExtraInfo struct {
|
|||
|
||||
func (ImageExtraInfo) isImageOutputTypeMD() {}
|
||||
|
||||
type OSBuildComposerDepModule struct {
|
||||
Path string `json:"path"`
|
||||
Version string `json:"version"`
|
||||
Replace *OSBuildComposerDepModule `json:"replace,omitempty"`
|
||||
}
|
||||
|
||||
// ManifestInfo holds information about the environment in which
|
||||
// the manifest was produced and which could affect its content.
|
||||
type ManifestInfo struct {
|
||||
OSBuildComposerVersion string `json:"osbuild_composer_version"`
|
||||
// List of relevant modules used by osbuild-composer which
|
||||
// could affect the manifest content.
|
||||
OSBuildComposerDeps []*OSBuildComposerDepModule `json:"osbuild_composer_deps,omitempty"`
|
||||
}
|
||||
|
||||
// ManifestExtraInfo holds extra metadata about the osbuild manifest.
|
||||
type ManifestExtraInfo struct {
|
||||
// TODO: include osbuild-composer version which produced the manifest?
|
||||
// TODO: include the vendored 'images' version?
|
||||
|
||||
Arch string `json:"arch"`
|
||||
Arch string `json:"arch"`
|
||||
Info *ManifestInfo `json:"info,omitempty"`
|
||||
}
|
||||
|
||||
func (ManifestExtraInfo) isImageOutputTypeMD() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue