Skip to content

Commit

Permalink
feat: Add support for vhd format for build-vm-image task
Browse files Browse the repository at this point in the history
  • Loading branch information
pastequo authored and mmorhun committed Oct 17, 2024
1 parent ea4288d commit b369ec1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion task/build-vm-image/0.1/build-vm-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
type: string
- name: IMAGE_TYPE
type: string
description: The type of VM image to build, valid values are iso, qcow2 and raw
description: The type of VM image to build, valid values are iso, qcow2, raw and vhd
- name: BIB_CONFIG_FILE
default: bib.yaml
type: string
Expand Down Expand Up @@ -257,6 +257,10 @@ spec:
echo -e "Found iso image."
pigz /output/bootiso/install.iso
buildah manifest add --arch $(arch) --os linux --artifact --artifact-type application/vnd.diskimage.iso.gzip $OUTPUT_IMAGE /output/bootiso/install.iso.gz
elif [ -f "/output/vpc/disk.vhd" ]; then
echo -e "Found vhd image."
pigz /output/vpc/disk.vhd
buildah manifest add --arch $(arch) --os linux --artifact --artifact-type application/vnd.diskimage.vhd.gzip $OUTPUT_IMAGE /output/vpc/disk.vhd.gz
fi
buildah manifest push --digestfile image-digest --authfile /.docker/config.json --all $OUTPUT_IMAGE
Expand Down

0 comments on commit b369ec1

Please sign in to comment.