From 37060a7d2e1090ac0df6e0a8656d30f7b37c052b Mon Sep 17 00:00:00 2001 From: Hyounggyu Choi Date: Tue, 14 May 2024 14:26:11 +0200 Subject: [PATCH] local-build: Stop using cached artifacts when local-build/* is updated This is to add an info for files at `tools/packaging/kata-deploy/local-build/* to a version of the components and ensure that the cached artefacts are not used when the files of interest are updated. Fixes: #9630 Signed-off-by: Hyounggyu Choi --- .../packaging/kata-deploy/local-build/kata-deploy-binaries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh index 33fba31863..e355721d98 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh @@ -186,7 +186,7 @@ install_cached_tarball_component() { fi local component="${1}" - local current_version="${2}" + local current_version="${2}-$(git log -1 --pretty=format:"%h" ${repo_root_dir}/tools/packaging/kata-deploy/local-build)" local current_image_version="${3}" local component_tarball_name="${4}" local component_tarball_path="${5}" @@ -1077,7 +1077,7 @@ handle_build() { esac pushd ${workdir} - echo "${latest_artefact}" > ${build_target}-version + echo "${latest_artefact}-$(git log -1 --pretty=format:"%h" ${repo_root_dir}/tools/packaging/kata-deploy/local-build)" > ${build_target}-version echo "${latest_builder_image}" > ${build_target}-builder-image-version sha256sum "${final_tarball_name}" > ${build_target}-sha256sum