Skip to content

Commit a511961

Browse files
author
k8s-merge-robot
committed
Merge pull request kubernetes#22329 from david-mcmahon/push-official
Auto commit by PR queue bot
2 parents d2ee8f7 + efa588d commit a511961

File tree

4 files changed

+12
-51
lines changed

4 files changed

+12
-51
lines changed

build/mark-stable-release.sh

Lines changed: 0 additions & 43 deletions
This file was deleted.

build/push-official-release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ set -o errexit
2020
set -o nounset
2121
set -o pipefail
2222

23-
if [ "$#" -ne 1 ]; then
24-
echo "Usage: ${0} <version>"
23+
if [[ "$#" -lt 1 ]]; then
24+
echo "Usage: ${0} <version> [<type>]"
25+
echo "(<type> defaults to 'latest')"
2526
exit 1
2627
fi
2728

2829
KUBE_RELEASE_VERSION="${1-}"
30+
KUBE_RELEASE_TYPE="${2:-"latest"}"
2931

3032
KUBE_GCS_NO_CACHING='n'
3133
KUBE_GCS_MAKE_PUBLIC='y'
@@ -53,4 +55,4 @@ fi
5355
kube::release::parse_and_validate_release_version "${KUBE_RELEASE_VERSION}"
5456
kube::release::gcs::release
5557
kube::release::docker::release
56-
kube::release::gcs::publish_official 'latest'
58+
kube::release::gcs::publish_official $KUBE_RELEASE_TYPE

docs/devel/releasing.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,6 @@ release](https://github.com/kubernetes/kubernetes/releases/new):
213213
notes draft), and attach it to the release; and
214214
1. publish!
215215

216-
Finally, from a clone of upstream/master, *make sure* you still have
217-
`RELEASE_VERSION` set correctly, and run `./build/mark-stable-release.sh
218-
${RELEASE_VERSION}`.
219-
220216
### Manual tasks for new release series
221217

222218
*TODO(#20946) Burn this list down.*

release/build-official-release.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ else
5959
RELEASE_BRANCH="release-${VERSION_MAJOR}.${VERSION_MINOR}"
6060
fi
6161

62+
if [[ "$KUBE_RELEASE_VERSION" =~ alpha|beta ]]; then
63+
KUBE_RELEASE_TYPE="latest"
64+
else
65+
KUBE_RELEASE_TYPE="stable"
66+
fi
67+
6268
declare -r KUBE_BUILD_DIR=$(mktemp -d "/tmp/kubernetes-build-release-${KUBE_RELEASE_VERSION}-XXXXXXX")
6369

6470
# Set the default umask for the release. This ensures consistency
@@ -107,7 +113,7 @@ cat <<- EOM
107113
Success! You must now do the following (you may want to cut and paste these
108114
instructions elsewhere):
109115
110-
1) pushd ${KUBE_BUILD_DIR}; build/push-official-release.sh ${KUBE_RELEASE_VERSION}
116+
1) pushd ${KUBE_BUILD_DIR}; build/push-official-release.sh ${KUBE_RELEASE_VERSION} ${KUBE_RELEASE_TYPE}
111117
112118
2) Release notes draft, to be published when the release is announced:
113119

0 commit comments

Comments
 (0)