Skip to content

Commit

Permalink
Merge pull request kata-containers#7406 from fidencio/topic/merge-tar…
Browse files Browse the repository at this point in the history
…ball-fix-version-yaml-not-found

kata-deploy: Properly get the path of the versions.yaml file
  • Loading branch information
fidencio authored Jul 21, 2023
2 parents f95a789 + ae6e8d2 commit a0fd41f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}"
Expand Down

0 comments on commit a0fd41f

Please sign in to comment.