mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Release tool finished
This commit is contained in:
parent
ab7576ff5b
commit
bf763387bb
@ -21,8 +21,6 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# TODO Audit echos to make sure they're all consistent.
|
|
||||||
|
|
||||||
# Sets DIR, INSTRUCTIONS
|
# Sets DIR, INSTRUCTIONS
|
||||||
function main() {
|
function main() {
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
@ -38,7 +36,7 @@ function main() {
|
|||||||
echo "!!! This NOT is a dry run."
|
echo "!!! This NOT is a dry run."
|
||||||
DRY_RUN=false
|
DRY_RUN=false
|
||||||
else
|
else
|
||||||
echo "(This is a dry run.)"
|
echo "This is a dry run."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check-prereqs
|
check-prereqs
|
||||||
@ -90,10 +88,17 @@ function main() {
|
|||||||
|
|
||||||
# Start a tmp file that will hold instructions for the user.
|
# Start a tmp file that will hold instructions for the user.
|
||||||
declare -r INSTRUCTIONS="/tmp/kubernetes-${release_type}-release-${new_version}-$(date +%s)-instructions"
|
declare -r INSTRUCTIONS="/tmp/kubernetes-${release_type}-release-${new_version}-$(date +%s)-instructions"
|
||||||
cat > "${INSTRUCTIONS}" <<- EOM
|
if $DRY_RUN; then
|
||||||
Success! You must now:
|
cat > "${INSTRUCTIONS}" <<- EOM
|
||||||
|
Success! You would now do the following, if not a dry run:
|
||||||
|
|
||||||
EOM
|
EOM
|
||||||
|
else
|
||||||
|
cat > "${INSTRUCTIONS}" <<- EOM
|
||||||
|
Success! You must now do the following:
|
||||||
|
|
||||||
|
EOM
|
||||||
|
fi
|
||||||
|
|
||||||
local -r github="https://github.com/kubernetes/kubernetes.git"
|
local -r github="https://github.com/kubernetes/kubernetes.git"
|
||||||
declare -r DIR="/tmp/kubernetes-${release_type}-release-${new_version}-$(date +%s)"
|
declare -r DIR="/tmp/kubernetes-${release_type}-release-${new_version}-$(date +%s)"
|
||||||
@ -187,7 +192,6 @@ function beta-release() {
|
|||||||
|
|
||||||
echo "Tagging ${beta_version} at $(current-git-commit)."
|
echo "Tagging ${beta_version} at $(current-git-commit)."
|
||||||
git tag -a -m "Kubernetes pre-release ${beta_version}" "${beta_version}"
|
git tag -a -m "Kubernetes pre-release ${beta_version}" "${beta_version}"
|
||||||
# TODO what about a PR?
|
|
||||||
git-push "${beta_version}"
|
git-push "${beta_version}"
|
||||||
finish-release-instructions "${beta_version}"
|
finish-release-instructions "${beta_version}"
|
||||||
}
|
}
|
||||||
@ -202,7 +206,6 @@ function official-release() {
|
|||||||
|
|
||||||
echo "Tagging ${official_version} at $(current-git-commit)."
|
echo "Tagging ${official_version} at $(current-git-commit)."
|
||||||
git tag -a -m "Kubernetes release ${official_version}" "${official_version}"
|
git tag -a -m "Kubernetes release ${official_version}" "${official_version}"
|
||||||
# TODO what about a PR?
|
|
||||||
git-push "${official_version}"
|
git-push "${official_version}"
|
||||||
finish-release-instructions "${official_version}"
|
finish-release-instructions "${official_version}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user