packaging: agent: Add rust version to the builder image name

As we want to make sure a new builder image is generated if the rust
version is bumped.

Signed-off-by: Fabiano Fidêncio <fabiano@fidencio.org>
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
Fabiano Fidêncio 2025-01-27 21:44:49 +01:00 committed by stevenhorsman
parent d3e0ecc394
commit 76df852f33

View File

@ -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() {