pipeline: pass meta data to stages & assemblers

Pass a new `meta` object to the stages and assemblers that for now
only contains the `id` of the corresponding stage or assembler.
This commit is contained in:
Christian Kellner 2020-06-10 12:04:53 +02:00
parent 82f4d1cc96
commit 72e00f3f2b

View file

@ -84,6 +84,9 @@ class Stage:
"tree": "/run/osbuild/tree",
"sources": "/run/osbuild/sources",
"options": self.options,
"meta": {
"id": self.id
}
}
ro_binds = [f"{sources_output}:/run/osbuild/sources"]
@ -136,6 +139,9 @@ class Assembler:
args = {
"tree": "/run/osbuild/tree",
"options": self.options,
"meta": {
"id": self.id
}
}
binds = []