Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for vhd format for build-vm-image task #1505

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading