worker: switch to --output-directory=DIR
Since 2 releases `osbuild` accepts an `--output-directory=DIR` argument which lets us decide where to place generated artifacts. Switch over to it, rather than digging into the store, to make sure we will not access the osbuild store when parallel cleanups are ongoing (which are not yet a thing, though).
This commit is contained in:
parent
ccdc4b62f4
commit
fdd7536152
2 changed files with 9 additions and 9 deletions
|
|
@ -19,10 +19,10 @@ func (e *OSBuildError) Error() string {
|
|||
return e.Message
|
||||
}
|
||||
|
||||
func RunOSBuild(manifest *osbuild.Manifest, store string, errorWriter io.Writer) (*common.ComposeResult, error) {
|
||||
func RunOSBuild(manifest *osbuild.Manifest, outputDirectory string, errorWriter io.Writer) (*common.ComposeResult, error) {
|
||||
cmd := exec.Command(
|
||||
"osbuild",
|
||||
"--store", store,
|
||||
"--output-directory", outputDirectory,
|
||||
"--json", "-",
|
||||
)
|
||||
cmd.Stderr = errorWriter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue