From 50183b48b853d4807f499acadfe4d47cbc121d8e Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 8 Feb 2023 13:32:47 +0100 Subject: [PATCH] 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. --- ci-automation/vms.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci-automation/vms.sh b/ci-automation/vms.sh index 1e6cdd43f4..6969c7318a 100644 --- a/ci-automation/vms.sh +++ b/ci-automation/vms.sh @@ -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}" \