Skip to content

Commit

Permalink
Update script to re-generate swagger.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Sep 25, 2015
1 parent e3188f6 commit 5c02e7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/mark-new-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

This comment has been minimized.

Copy link
@zmerlynn

zmerlynn Sep 25, 2015

Member

versionize-docs is supposed to take care of this


git commit -am "Versioning docs and examples for ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"

VERSION_FILE="${KUBE_ROOT}/pkg/version/base.go"
Expand All @@ -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"
Expand Down

0 comments on commit 5c02e7f

Please sign in to comment.