mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Fixes to release scripts
This commit is contained in:
parent
652a8a6a44
commit
849cfaaf09
@ -24,7 +24,7 @@ set -o pipefail
|
|||||||
# Sets DIR, INSTRUCTIONS
|
# Sets DIR, INSTRUCTIONS
|
||||||
function main() {
|
function main() {
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
if [[ "$#" -ne 2 ]]; then
|
if [[ "$#" -ne 2 && "$#" -ne 3 ]]; then
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -93,7 +93,7 @@ function main() {
|
|||||||
local -r release_umask=${release_umask:-022}
|
local -r release_umask=${release_umask:-022}
|
||||||
umask "${release_umask}"
|
umask "${release_umask}"
|
||||||
|
|
||||||
local -r github="https://github.com/kubernetes/kubernetes.git"
|
local -r github="git@github.com:kubernetes/kubernetes.git"
|
||||||
declare -r DIR=$(mktemp -d "/tmp/kubernetes-${release_type}-release-${new_version}-XXXXXXX")
|
declare -r DIR=$(mktemp -d "/tmp/kubernetes-${release_type}-release-${new_version}-XXXXXXX")
|
||||||
|
|
||||||
# Start a tmp file that will hold instructions for the user.
|
# Start a tmp file that will hold instructions for the user.
|
||||||
@ -340,10 +340,9 @@ function rev-version-and-commit() {
|
|||||||
function git-push() {
|
function git-push() {
|
||||||
local -r object="${1}"
|
local -r object="${1}"
|
||||||
if $DRY_RUN; then
|
if $DRY_RUN; then
|
||||||
echo "Dry run: would have done git push ${object}"
|
echo "Dry run: would have done git push origin ${object}"
|
||||||
else
|
else
|
||||||
echo "NOT A DRY RUN: you don't really want to git push ${object}, do you?"
|
git push origin "${object}"
|
||||||
# git push "${object}"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user