job: pass manifest instead of pipeline to osbuild

This is not a behavioral change, as all distros currently use
empty source objects. But when we move over to rpm-based pipelines,
this will change.

Make the same change to osbuild-pipeline, so these stay in sync.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-03-03 21:33:42 +01:00
parent 919c484c79
commit 571932db37
7 changed files with 31 additions and 29 deletions

View file

@ -106,14 +106,14 @@ func main() {
}
size := d.GetSizeForOutputType(imageType, 0)
pipeline, err := d.Pipeline(blueprint, nil, packageSpecs, buildPackageSpecs, checksums, archArg, imageType, size)
manifest, err := d.Manifest(blueprint, nil, packageSpecs, buildPackageSpecs, checksums, archArg, imageType, size)
if err != nil {
panic(err.Error())
}
bytes, err := json.Marshal(pipeline)
bytes, err := json.Marshal(manifest)
if err != nil {
panic("could not marshal pipeline into JSON")
panic("could not marshal manifest into JSON")
}
os.Stdout.Write(bytes)