mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-17 17:02:42 +00:00
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:
parent
eb7a33ee71
commit
21fd7e6dfd
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user