Use git describe for image name

This commit is contained in:
Oleg Kalachev
2020-10-23 16:59:37 +03:00
parent 18e3d2408f
commit 29f4118dc6

View File

@@ -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!"