From aae09eef4b718298f8fea63f73312c0c08231039 Mon Sep 17 00:00:00 2001 From: Kai Lueke Date: Tue, 28 Jun 2022 15:19:52 +0200 Subject: [PATCH] ci-automation: align VM image compression with existing pipeline In jenkins/vms.sh the Digital Ocean and OpenStack images get also compressed as gzip. Do so for the new pipeline, too. --- ci-automation/vms.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci-automation/vms.sh b/ci-automation/vms.sh index ca69164485..7710d8a134 100644 --- a/ci-automation/vms.sh +++ b/ci-automation/vms.sh @@ -105,10 +105,15 @@ function _vm_build_impl() { for format in ${formats}; do echo " ################### VENDOR '${format}' ################### " + COMPRESSION_FORMAT="bz2" + if [[ "${format}" =~ ^(openstack|openstack_mini|digitalocean)$ ]];then + COMPRESSION_FORMAT="gz,bz2" + fi ./run_sdk_container -n "${vms_container}" -C "${image_image}" \ -v "${vernum}" \ ./image_to_vm.sh --format "${format}" --board="${arch}-usr" \ - --from "${CONTAINER_IMAGE_ROOT}/${arch}-usr/latest" + --from "${CONTAINER_IMAGE_ROOT}/${arch}-usr/latest" \ + --image_compression_formats="${COMPRESSION_FORMAT}" done # copy resulting images + push to buildcache