@@ -562,14 +562,6 @@ def push_image_manifest(
562562 manifest_image ["annotations" ]["cname" ] = cname
563563 manifest_image ["annotations" ]["architecture" ] = architecture
564564 manifest_image ["annotations" ]["feature_set" ] = feature_set
565- description = (
566- f"Garden Linux image { cname } -{ version } -{ architecture } \n "
567- f"Architecture: { architecture } \n "
568- f"Features: { feature_set } \n "
569- )
570- manifest_image ["annotations" ][
571- "org.opencontainers.image.description"
572- ] = description
573565 attach_state (manifest_image ["annotations" ], "" )
574566
575567 config_annotations = {"cname" : cname , "architecture" : architecture }
@@ -593,9 +585,15 @@ def push_image_manifest(
593585 )
594586
595587 # This ends up in the index-entry for the manifest
588+ description = (
589+ f"Garden Linux image { cname } -{ version } -{ architecture } \n "
590+ f"Architecture: { architecture } \n "
591+ f"Features: { feature_set } "
592+ )
596593 metadata_annotations = {"cname" : cname , "architecture" : architecture }
597594 attach_state (metadata_annotations , "" )
598595 metadata_annotations ["feature_set" ] = feature_set
596+ metadata_annotations ["org.opencontainers.image.description" ] = description
599597 manifest_digest = self .get_digest (manifest_container )
600598 if manifest_digest != local_digest :
601599 raise ValueError ("local and remotely calculated digests do not match" )
0 commit comments