mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 07:19:06 +00:00
release: initialize CI variable in lib.sh
Recent change to always build tools from the local repository if the script is run in a CI environment fails during a release build as the variable ${CI} is not initialized. This fix addresses that issue. Fixes: #537 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
This commit is contained in:
parent
47eb1c27d1
commit
d72d5daa32
@ -41,7 +41,7 @@ get_from_kata_deps() {
|
||||
# through CI. For the kernel, .ci/install_kata_kernel.sh file in tests
|
||||
# repository will pass the kernel version as an override to this function to
|
||||
# allow testing of kernels before they land in tree.
|
||||
if ${CI}; then
|
||||
if [ "${CI:-}" = "true" ]; then
|
||||
versions_file="${GOPATH}/src/${runtime_repo}/versions.yaml"
|
||||
else
|
||||
versions_file="versions-${branch}.yaml"
|
||||
|
Loading…
Reference in New Issue
Block a user