From e4b9fc0399e9dd336431f2a540bb0a326ee6b734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 27 Jan 2025 21:44:49 +0100 Subject: [PATCH] packaging: agent: Add rust version to the builder image name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As we want to make sure a new builder image is generated if the rust version is bumped. Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/scripts/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/packaging/scripts/lib.sh b/tools/packaging/scripts/lib.sh index f5ba3624b6af..a5b81e632bf2 100644 --- a/tools/packaging/scripts/lib.sh +++ b/tools/packaging/scripts/lib.sh @@ -230,8 +230,9 @@ get_agent_image_name() { "$(get_last_modification "${repo_root_dir}/ci/install_libseccomp.sh")" \ "$(get_last_modification "${repo_root_dir}/tools/packaging/kata-deploy/local-build/kata-deploy-copy-libseccomp-installer.sh")") agent_dir="${repo_root_dir}/tools/packaging/static-build/agent" + rust_toolchain="$(get_from_kata_deps ".languages.rust.meta.newest-version")" - echo "${BUILDER_REGISTRY}:agent-${libseccomp_hash}-$(get_last_modification ${agent_dir})-$(uname -m)" + echo "${BUILDER_REGISTRY}:agent-${libseccomp_hash}-$(get_last_modification ${agent_dir})-${rust_toolchain}-$(uname -m)" } get_coco_guest_components_image_name() {