mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 23:11:57 +00:00
ci: cache: Check the sha256sum of the component
We've removed this in the part 2 of this effort, as we were not caching
the sha256sum of the component. Now that this part has been merged,
let's get back to checking it.
Fixes: #7834 -- part 3
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
(cherry picked from commit 86c41074b4
)
This commit is contained in:
parent
a55c082fa1
commit
dc9f2c24f1
@ -111,6 +111,11 @@ EOF
|
||||
exit "${return_code}"
|
||||
}
|
||||
|
||||
cleanup_and_fail() {
|
||||
rm -f "${component_tarball_name}"
|
||||
return 1
|
||||
}
|
||||
|
||||
install_cached_tarball_component() {
|
||||
if [ "${USE_CACHE}" != "yes" ]; then
|
||||
return 1
|
||||
@ -132,6 +137,7 @@ install_cached_tarball_component() {
|
||||
|
||||
[ "${cached_image_version}" != "${current_image_version}" ] && return 1
|
||||
[ "${cached_version}" != "${current_version}" ] && return 1
|
||||
sha256sum -c "${component}-sha256sum" || return $(cleanup_and_fail)
|
||||
|
||||
info "Using cached tarball of ${component}"
|
||||
mv "${component_tarball_name}" "${component_tarball_path}"
|
||||
|
Loading…
Reference in New Issue
Block a user