Skip to content

Commit ef55754

Browse files
committed
cmd-generate-release-meta: inject oci-image key in release metadata
Take the digest pullspec for the base OS bootable container and put it in the new `oci-image` field in the release metadata. Part of coreos/fedora-coreos-tracker#1823.
1 parent f797028 commit ef55754

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cmd-generate-release-meta

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ def append_build(out, input_):
142142
# build the architectures dict
143143
arch_dict = {"media": {}}
144144
ensure_dup(input_, arch_dict, "ostree-commit", "commit")
145+
146+
# we always expect base-oscontainer so error out if missing
147+
assert 'base-oscontainer' in input_
148+
arch_dict['oci-image'] = populate_oci_image(input_['buildid'], input_['base-oscontainer'])
149+
145150
platforms = ["aliyun", "applehv", "aws", "azure", "azurestack", "digitalocean", "exoscale", "gcp", "hyperv", "ibmcloud", "kubevirt", "metal", "nutanix", "openstack", "powervs", "qemu", "virtualbox", "vmware", "vultr", "qemu-secex"]
146151
for platform in platforms:
147152
if input_.get("images", {}).get(platform, None) is not None:

0 commit comments

Comments
 (0)