mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 13:22:28 +00:00
Merge pull request #528 from ganeshmaharaj/local-version-check
ci: always use the versions from the local repository for CI
This commit is contained in:
commit
f4d485373a
@ -36,12 +36,18 @@ get_from_kata_deps() {
|
|||||||
local branch="${2:-${BRANCH}}"
|
local branch="${2:-${BRANCH}}"
|
||||||
local runtime_repo="github.com/kata-containers/runtime"
|
local runtime_repo="github.com/kata-containers/runtime"
|
||||||
GOPATH=${GOPATH:-${HOME}/go}
|
GOPATH=${GOPATH:-${HOME}/go}
|
||||||
# We will not query the local versions.yaml file here to allow releases to
|
# For our CI, we will query the local versions.yaml file both for kernel and
|
||||||
# always get the version from the committed tree. For our CI,
|
# all other subsystems. eg: a new version of NEMU would be good to test
|
||||||
# .ci/install_kata_kernel.sh file in tests repository will pass the kernel
|
# through CI. For the kernel, .ci/install_kata_kernel.sh file in tests
|
||||||
# version as an override to this function to allow testing of kernels before
|
# repository will pass the kernel version as an override to this function to
|
||||||
# they land in tree.
|
# allow testing of kernels before they land in tree.
|
||||||
versions_file="versions-${branch}.yaml"
|
if ${CI}; then
|
||||||
|
info "Sourcing versions from local file found in runtime repository"
|
||||||
|
versions_file="${GOPATH}/src/${runtime_repo}/versions.yaml"
|
||||||
|
else
|
||||||
|
info "Sourcing versions from github ${branch} branch"
|
||||||
|
versions_file="versions-${branch}.yaml"
|
||||||
|
fi
|
||||||
if [ ! -e "${versions_file}" ]; then
|
if [ ! -e "${versions_file}" ]; then
|
||||||
yaml_url="https://raw.githubusercontent.com/kata-containers/runtime/${branch}/versions.yaml"
|
yaml_url="https://raw.githubusercontent.com/kata-containers/runtime/${branch}/versions.yaml"
|
||||||
echo "versions file (${versions_file}) does not exist" >&2
|
echo "versions file (${versions_file}) does not exist" >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user