Merge pull request #7406 from fidencio/topic/merge-tarball-fix-version-yaml-not-found

kata-deploy: Properly get the path of the versions.yaml file
This commit is contained in:
Fabiano Fidêncio 2023-07-21 14:04:18 +02:00 committed by GitHub
commit a0fd41fd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ kata_build_dir=${1:-build}
kata_versions_yaml_file=${2:-""}
tar_path="${PWD}/kata-static.tar.xz"
kata_versions_yaml_file_path="${PWD}/${kata_versions_yaml_file}"
pushd "${kata_build_dir}"
tarball_content_dir="${PWD}/kata-tarball-content"
@ -32,7 +33,7 @@ pushd ${tarball_content_dir}
prefix=${shim_path%"bin/${shim}"}
echo "$(git describe)" > ${prefix}/VERSION
[[ -n "${kata_versions_yaml_file}" ]] && cp ${kata_versions_yaml_file} ${prefix}/
[[ -n "${kata_versions_yaml_file}" ]] && cp ${kata_versions_yaml_file_path} ${prefix}/
popd
echo "create ${tar_path}"