mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 20:26:44 +02:00
Merge pull request #1936 from flatcar/scripts
ci-automation/vms: Download vmlinuz file before building VM images
This commit is contained in:
commit
4b67749060
@ -106,6 +106,7 @@ function _vm_build_impl() {
|
||||
rm -rf "${images_in}"
|
||||
copy_from_buildcache "images/${arch}/${vernum}/flatcar_production_image.bin.bz2" "${images_in}"
|
||||
copy_from_buildcache "images/${arch}/${vernum}/version.txt" "${images_in}"
|
||||
copy_from_buildcache "images/${arch}/${vernum}/flatcar_production_image.vmlinuz" "${images_in}"
|
||||
lbunzip2 "${images_in}/flatcar_production_image.bin.bz2"
|
||||
./run_sdk_container -x ./ci-cleanup.sh -n "${vms_container}" -C "${packages_image}" \
|
||||
-v "${vernum}" \
|
||||
@ -144,8 +145,12 @@ function _vm_build_impl() {
|
||||
mv "${CONTAINER_IMAGE_ROOT}/${arch}-usr/" "./${images_out}/"
|
||||
|
||||
( cd images/latest ; ln -s flatcar_production_openstack_image.img.bz2 flatcar_production_brightbox_image.img.bz2 )
|
||||
# For the digest creation we need the vmlinuz at the same folder
|
||||
# because the PXE vmlinuz is a symlink to it
|
||||
mv images/latest-input/flatcar_production_image.vmlinuz images/latest/
|
||||
create_digests "${SIGNER}" "images/latest/"*
|
||||
sign_artifacts "${SIGNER}" "images/latest/"*
|
||||
mv images/latest/flatcar_production_image.vmlinuz* images/latest-input/
|
||||
copy_to_buildcache "images/${arch}/${vernum}/" "images/latest/"*
|
||||
}
|
||||
# --
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user