mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-21 21:51:57 +02:00
ci-automation: Get two files to build vms instead of a whole directory
Getting the contents of the directory in the buildcache involves using rsync with some ssh invocation to log in as a bincache user. It's not a thing that will work locally unless the user gets ahold of the SSH key allowing the user to log in to buildcache as a bincache user. Replace it by downloading two files that are actually needed for building vms: an image file and the version file. This just uses curl and is accessible for everyone.
This commit is contained in:
parent
e99a025508
commit
50183b48b8
@ -109,7 +109,8 @@ function _vm_build_impl() {
|
||||
|
||||
local images_in="images-in/"
|
||||
rm -rf "${images_in}"
|
||||
copy_dir_from_buildcache "images/${arch}/${vernum}/" "${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}"
|
||||
lbunzip2 "${images_in}/flatcar_production_image.bin.bz2"
|
||||
./run_sdk_container -x ./ci-cleanup.sh -n "${vms_container}" -C "${packages_image}" \
|
||||
-v "${vernum}" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user