From cd32d69bb8d28d6fb463b33922a126d92f78407b Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Wed, 24 Feb 2021 16:33:38 +0100 Subject: [PATCH] Build containerfile and images repos against each other --- osclib/stagingapi.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/osclib/stagingapi.py b/osclib/stagingapi.py index dede6236..5291d475 100644 --- a/osclib/stagingapi.py +++ b/osclib/stagingapi.py @@ -1384,18 +1384,29 @@ class StagingAPI(object): linkproject = '' repository = '' + # Add "images" and "containerfile" repos if the main project has them. + # If both are present, they build against each other and the parent project. + images_repo = '' if self.project_has_repo('images'): + containerfile_path = '' + if self.project_has_repo('containerfile'): + containerfile_path = f'' + images_repo = f""" + {containerfile_path} x86_64 """ containerfile_repo = '' if self.project_has_repo('containerfile'): - images_path = f'' if images_repo else '' + images_path = '' + if self.project_has_repo('images'): + images_path = f'' + containerfile_repo = f"""