From b13db29aaa41f6d4572e38230dc47683b45aa389 Mon Sep 17 00:00:00 2001 From: Anastassios Nanos Date: Fri, 14 Feb 2025 12:41:05 +0000 Subject: [PATCH] packaging(release): Properly handle version tag for the release bundle The tags created automatically for published Github releases are probably not annotated, so by simply running `git describe` we are not getting the correct tag. Use a `git describe --tags` to allow git to look at all tags, not just annotated ones. Signed-off-by: Anastassios Nanos --- .../kata-deploy/local-build/kata-deploy-merge-builds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh index 9d9ee3c40..4e30b8893 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh @@ -32,7 +32,7 @@ pushd ${tarball_content_dir} shim_path=$(find . -name ${shim} | sort | head -1) prefix=${shim_path%"bin/${shim}"} - echo "$(git describe)" > ${prefix}/VERSION + echo "$(git describe --tags)" > ${prefix}/VERSION [[ -n "${kata_versions_yaml_file}" ]] && cp ${kata_versions_yaml_file_path} ${prefix}/ popd