Tag beta on same commit as NEW_VERSION

This commit is contained in:
Isaac Hollander McCreery 2015-10-09 09:22:58 -07:00
parent ea6c385674
commit 3a823ed363

View File

@ -114,6 +114,12 @@ git commit -m "Kubernetes version $NEW_VERSION"
echo "+++ Tagging version"
git tag -a -m "Kubernetes version $NEW_VERSION" "${NEW_VERSION}"
# We have to sleep for a bit so that the timestamp of the beta tag is after the
# timestamp of the release version, so that future commits are described as
# beta, and not release versions.
sleep 5
declare -r beta_ver="v${VERSION_MAJOR}.${VERSION_MINOR}.$((${VERSION_PATCH}+1))-beta"
git tag -a -m "Kubernetes version $beta_ver" "${beta_ver}"
newtag=$(git rev-parse --short HEAD)
if [[ "${VERSION_PATCH}" == "0" ]]; then