Add short commit to release and add OCI support

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2025-01-30 13:48:52 +02:00
parent 8fcc007ebf
commit 660af63010
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3

View File

@ -16,12 +16,14 @@ case "${image_profile}" in
esac
case "${image_profile}" in
*Live*) image_type="iso" ;;
* ) image_type="oem" ;;
*Live*) image_type="iso" ;;
*Container*) image_type="oci" ;;
* ) image_type="oem" ;;
esac
commit="$(git rev-parse --short=12 HEAD)"
today="$(date '+%Y%m%d')"
outdir="${today}-${image_profile}"
outdir="${today}-${image_profile}-${commit}"
rm -rf "${outdir}-build" "${outdir}"
@ -30,7 +32,7 @@ rm -rf "${outdir}-build" "${outdir}"
--kiwi-file="${kiwi_file}" \
--image-type="${image_type}" \
--image-profile="${image_profile}" \
--image-release="${today}" \
--image-release="${today}-${commmit}" \
"$@"
rm -rf "${outdir}-build"