only upload manifests if configured
@@ -279,10 +279,6 @@ def promote(
flavour_set: glci.model.GardenlinuxFlavourSet,
build_type: glci.model.BuildType,
):
- upload_release_manifest_set = glci.util.preconfigured(
- func=glci.util.upload_release_manifest_set,
- cicd_cfg=cicd_cfg,
- )
if glci.model.PublishingAction.IMAGES in publishing_actions:
executor = concurrent.futures.ThreadPoolExecutor(
@@ -295,6 +291,12 @@ def promote(
for release in releases:
print(release.published_image_metadata)
+ if glci.model.PublishingAction.MANIFESTS in publishing_actions:
+ upload_release_manifest_set = glci.util.preconfigured(
+ func=glci.util.upload_release_manifest_set,
+ cicd_cfg=cicd_cfg,
+ )
+
manifest_set = glci.model.ReleaseManifestSet(
manifests=releases,
flavour_set_name=flavour_set.name,
