mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +00:00
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:
commit
a0fd41fd37
@ -14,6 +14,7 @@ kata_build_dir=${1:-build}
|
|||||||
kata_versions_yaml_file=${2:-""}
|
kata_versions_yaml_file=${2:-""}
|
||||||
|
|
||||||
tar_path="${PWD}/kata-static.tar.xz"
|
tar_path="${PWD}/kata-static.tar.xz"
|
||||||
|
kata_versions_yaml_file_path="${PWD}/${kata_versions_yaml_file}"
|
||||||
|
|
||||||
pushd "${kata_build_dir}"
|
pushd "${kata_build_dir}"
|
||||||
tarball_content_dir="${PWD}/kata-tarball-content"
|
tarball_content_dir="${PWD}/kata-tarball-content"
|
||||||
@ -32,7 +33,7 @@ pushd ${tarball_content_dir}
|
|||||||
prefix=${shim_path%"bin/${shim}"}
|
prefix=${shim_path%"bin/${shim}"}
|
||||||
|
|
||||||
echo "$(git describe)" > ${prefix}/VERSION
|
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
|
popd
|
||||||
|
|
||||||
echo "create ${tar_path}"
|
echo "create ${tar_path}"
|
||||||
|
Loading…
Reference in New Issue
Block a user