Disable removing rc label from image file name

This commit is contained in:
Oleg Kalachev
2021-06-29 05:36:54 +03:00
parent c1be6a58f5
commit d4f1aa5205

View File

@@ -32,11 +32,11 @@ ${PACKER} build ros_ide_vm.json
echo "--- Marking the VM"
if [[ $GITHUB_REF == refs/tags/*-rc* ]]; then
# if [[ $GITHUB_REF == refs/tags/*-rc* ]]; then
# remove rc label
VERSION=${GITHUB_REF#refs/tags/}
VERSION=${VERSION/-rc*/}
elif [[ $GITHUB_REF == refs/tags/* ]]; then
# VERSION=${GITHUB_REF#refs/tags/}
# VERSION=${VERSION/-rc*/}
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
else
VERSION=$(git describe --always)