From 29f4118dc68914ea18c03bcb751a0be0dfa21d02 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Fri, 23 Oct 2020 16:59:37 +0300 Subject: [PATCH] Use git describe for image name --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1f2365c..7939780 100755 --- a/build.sh +++ b/build.sh @@ -28,7 +28,8 @@ ${PACKER} build ros_ide_vm.json echo "--- Marking the VM" GIT_REV=$(git rev-parse --short HEAD) -VM_NAME="clover-devel_v0.20+${GIT_REV}.ova" +GIT_DESCRIBE=$(git describe --tags) +VM_NAME="clover-devel_${GIT_DESCRIBE}.ova" mv ./output-virtualbox-ovf/clover-devel.ova ./output-virtualbox-ovf/${VM_NAME} echo "--- All done!"