Skip to content

Commit 0640c66

Browse files
committed
[CALCITE-3043] Add the ability to publish and promote releases using docker
1 parent a6d01bb commit 0640c66

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

docker.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,17 @@ promote_release(){
432432

433433
set_git_credentials
434434

435+
# Tag release and push it
435436
git tag rel/avatica-$TAG_WITHOUT_RC $LATEST_TAG
436-
437437
git push $GITBOX_URL rel/avatica-$TAG_WITHOUT_RC
438438

439+
# Merge release branch back to master and push
440+
[[ $TAG_WITHOUT_RC =~ ([[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+$ ]]
441+
BRANCH_VERSION=${BASH_REMATCH[1]}
442+
git checkout master
443+
git merge branch-$TAG_WITHOUT_RC --ff-only
444+
git push $GITBOX_URL master
445+
439446
svn checkout $RELEASE_REPO /tmp/release
440447
rm -rf /tmp/release/$PRODUCT-$TAG_WITHOUT_RC
441448
mkdir -p /tmp/release/$PRODUCT-$TAG_WITHOUT_RC

site/_docs/howto.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,14 @@ svn ci
568568
The old releases will remain available in the
569569
[release archive](http://archive.apache.org/dist/calcite/).
570570

571+
Merge the release branch back to master and push it:
572+
573+
{% highlight bash %}
574+
git checkout master
575+
git merge branch-X.Y --ff-only
576+
git push origin master
577+
{% endhighlight %}
578+
571579
### Publishing a release using docker:
572580
This assumes that a rc release was tagged and pushed to the git repository.
573581

0 commit comments

Comments
 (0)