Skip to content
Snippets Groups Projects
Commit 5c02e7f1 authored by Brendan Burns's avatar Brendan Burns
Browse files

Update script to re-generate swagger.

parent e3188f6e
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,10 @@ fi
echo "+++ Running ./versionize-docs"
${KUBE_ROOT}/build/versionize-docs.sh ${NEW_VERSION}
echo "+++ Updating swagger"
${KUBE_ROOT}/hack/update-generated-swagger-docs.sh
git commit -am "Versioning docs and examples for ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
VERSION_FILE="${KUBE_ROOT}/pkg/version/base.go"
......@@ -103,6 +107,7 @@ $SED -ri -e "s/gitMinor\s+string = \"[^\"]*\"/gitMinor string = \"${GIT_MINOR}\"
$SED -ri -e "s/gitVersion\s+string = \"[^\"]*\"/gitVersion string = \"$NEW_VERSION-${release_branch}+\$Format:%h\$\"/" "${VERSION_FILE}"
gofmt -s -w "${VERSION_FILE}"
echo "+++ Committing version change"
git add "${VERSION_FILE}"
git commit -m "Kubernetes version $NEW_VERSION"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment