Skip to content

Commit f0dc9d9

Browse files
fidencioteawater
authored andcommitted
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 <[email protected]> Signed-off-by: stevenhorsman <[email protected]>
1 parent 7c4662d commit f0dc9d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/packaging/scripts/lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ get_agent_image_name() {
230230
"$(get_last_modification "${repo_root_dir}/ci/install_libseccomp.sh")" \
231231
"$(get_last_modification "${repo_root_dir}/tools/packaging/kata-deploy/local-build/kata-deploy-copy-libseccomp-installer.sh")")
232232
agent_dir="${repo_root_dir}/tools/packaging/static-build/agent"
233+
rust_toolchain="$(get_from_kata_deps ".languages.rust.meta.newest-version")"
233234

234-
echo "${BUILDER_REGISTRY}:agent-${libseccomp_hash}-$(get_last_modification ${agent_dir})-$(uname -m)"
235+
echo "${BUILDER_REGISTRY}:agent-${libseccomp_hash}-$(get_last_modification ${agent_dir})-${rust_toolchain}-$(uname -m)"
235236
}
236237

237238
get_coco_guest_components_image_name() {

0 commit comments

Comments
 (0)