packaging: Fail in case oras can't find an artefact

It just means the component is not cached, and that it must be built in
the usual way.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2024-01-25 13:30:28 +01:00
parent eb7a33ee71
commit 21fd7e6dfd
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B

View File

@ -140,7 +140,7 @@ install_cached_tarball_component() {
local component_tarball_name="${4}" local component_tarball_name="${4}"
local component_tarball_path="${5}" local component_tarball_path="${5}"
sudo oras pull ${ARTEFACT_REGISTRY}/kata-containers/cached-artefacts/${build_target}:latest-${TARGET_BRANCH}-$(uname -m) sudo oras pull ${ARTEFACT_REGISTRY}/kata-containers/cached-artefacts/${build_target}:latest-${TARGET_BRANCH}-$(uname -m) || return 1
cached_version="$(cat ${component}-version)" cached_version="$(cat ${component}-version)"
cached_image_version="$(cat ${component}-builder-image-version)" cached_image_version="$(cat ${component}-builder-image-version)"