Skip to content

Commit

Permalink
cmd-generate-release-meta: inject oci-image key in release metadata
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jlebon committed Nov 1, 2024
1 parent f797028 commit ef55754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd-generate-release-meta
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ def append_build(out, input_):
# build the architectures dict
arch_dict = {"media": {}}
ensure_dup(input_, arch_dict, "ostree-commit", "commit")

# we always expect base-oscontainer so error out if missing
assert 'base-oscontainer' in input_
arch_dict['oci-image'] = populate_oci_image(input_['buildid'], input_['base-oscontainer'])

platforms = ["aliyun", "applehv", "aws", "azure", "azurestack", "digitalocean", "exoscale", "gcp", "hyperv", "ibmcloud", "kubevirt", "metal", "nutanix", "openstack", "powervs", "qemu", "virtualbox", "vmware", "vultr", "qemu-secex"]
for platform in platforms:
if input_.get("images", {}).get(platform, None) is not None:
Expand Down

0 comments on commit ef55754

Please sign in to comment.