mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
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.
This commit is contained in:
parent
e7e9ae8044
commit
aae09eef4b
@ -105,10 +105,15 @@ function _vm_build_impl() {
|
|||||||
|
|
||||||
for format in ${formats}; do
|
for format in ${formats}; do
|
||||||
echo " ################### VENDOR '${format}' ################### "
|
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}" \
|
./run_sdk_container -n "${vms_container}" -C "${image_image}" \
|
||||||
-v "${vernum}" \
|
-v "${vernum}" \
|
||||||
./image_to_vm.sh --format "${format}" --board="${arch}-usr" \
|
./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
|
done
|
||||||
|
|
||||||
# copy resulting images + push to buildcache
|
# copy resulting images + push to buildcache
|
||||||
|
Loading…
Reference in New Issue
Block a user