lib.sh: Pass right parameters to build image

Creating Kata packages fails
due to "Makefile:58: *** target pattern
contains no '%'.  Stop" error. Fix it.

Fixes: #539 

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
nitkon
2019-05-24 17:02:23 +05:30
committed by GitHub
parent 829fd44aaa
commit 3d0b60fefd

View File

@@ -42,10 +42,8 @@ get_from_kata_deps() {
# repository will pass the kernel version as an override to this function to # repository will pass the kernel version as an override to this function to
# allow testing of kernels before they land in tree. # allow testing of kernels before they land in tree.
if ${CI}; then if ${CI}; then
info "Sourcing versions from local file found in runtime repository"
versions_file="${GOPATH}/src/${runtime_repo}/versions.yaml" versions_file="${GOPATH}/src/${runtime_repo}/versions.yaml"
else else
info "Sourcing versions from github ${branch} branch"
versions_file="versions-${branch}.yaml" versions_file="versions-${branch}.yaml"
fi fi
if [ ! -e "${versions_file}" ]; then if [ ! -e "${versions_file}" ]; then