assemblers/ostree.commit: report compose metadata
Pass all the compose metadata, as given by rpm-ostree via the compose.json, back to osbuild via the new api.metadata method.
This commit is contained in:
parent
1af4fc7f2a
commit
174a802803
1 changed files with 6 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ import subprocess
|
|||
import sys
|
||||
import tempfile
|
||||
|
||||
from osbuild import api
|
||||
from osbuild.util import ostree
|
||||
|
||||
|
||||
|
|
@ -162,6 +163,11 @@ def main(tree, output_dir, options, meta):
|
|||
stdout=sys.stderr,
|
||||
check=True)
|
||||
|
||||
with open(os.path.join(output_dir, "compose.json"), "r") as f:
|
||||
compose = json.load(f)
|
||||
|
||||
api.metadata({"compose": compose})
|
||||
|
||||
if tar:
|
||||
filename = tar["filename"]
|
||||
command = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue