ci: also print generated cd for build-log
+import dataclasses
+import logging
+import pprint
import sys
import glci
@@ -11,6 +14,8 @@ import product.v2
import ctx
+logger = logging.getLogger(__name__)
+
def _resolve_ctx_repository_config(cfg_name):
f = ctx.cfg_factory()
@@ -96,6 +101,11 @@ def build_component_descriptor(
for release_manifest in releases
])
+ logger.info(
+ 'Generated Component-Descriptor:\n'
+ f'{pprint.pformat(dataclasses.asdict(component_descriptor))}'
+ )
+
if glci.model.PublishingAction.RELEASE in publishing_actions:
product.v2.upload_component_descriptor_v2_to_oci_registry(
component_descriptor_v2=component_descriptor,
