Skip to content

Commit a46bac2

Browse files
authored
Set org.opencontainers.image.description (#81)
* Set org.opencontainers.image.description Signed-off-by: Paul Hildebrandt <[email protected]>
1 parent 72a00cb commit a46bac2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/python_gardenlinux_lib/oras/registry.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,14 @@ 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: {cname} "
567+
f"Architecture: {architecture} "
568+
f"Features: {feature_set}"
569+
)
570+
manifest_image["annotations"][
571+
"org.opencontainers.image.description"
572+
] = description
565573
attach_state(manifest_image["annotations"], "")
566574

567575
config_annotations = {"cname": cname, "architecture": architecture}

0 commit comments

Comments
 (0)