mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Tag beta on same commit as NEW_VERSION
This commit is contained in:
parent
ea6c385674
commit
3a823ed363
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user