Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automation to change vitess version in the docker-release script #11682

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/do_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ function updateVitessExamples () {
rm -f $(find -E $ROOT/examples/compose/**/* -regex ".*.(go|yml).bak")
}

# First argument is the Release Version the docker release script should be set to (for instance: v15.0.0)
function updateDockerReleaseScript () {
sed -i.bak -E "s/vt_base_version=.*/vt_base_version='$1'/g" $ROOT/docker/release.sh
rm -f $ROOT/docker/release.sh.bak
}

# Preparing and tagging the release
function doRelease () {
checkoutNewBranch "tag"
Expand All @@ -131,6 +137,7 @@ function doRelease () {
# Preparing the release commit
updateVitessExamples $RELEASE_VERSION $VTOP_VERSION
updateJava $RELEASE_VERSION
updateDockerReleaseScript $RELEASE_VERSION
updateVersionGo $RELEASE_VERSION

## Create the commit for this release and tag it
Expand All @@ -152,6 +159,7 @@ function doBackToDevMode () {

# Preparing the "dev mode" commit
updateJava $DEV_VERSION
updateDockerReleaseScript $DEV_VERSION
updateVersionGo $DEV_VERSION

git add --all
Expand Down