Skip to content

Commit

Permalink
Merge pull request #637 from zalando/feature/4-eyes-release
Browse files Browse the repository at this point in the history
Changed release script to allow 4-eyes principle
  • Loading branch information
whiskeysierra authored Apr 3, 2019
2 parents 952d55d + e7e98cd commit 2cf1bd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ current=$(git describe --abbrev=0 || echo 0.0.0)
release=$(semver ${current} -i $1 --preid RC)
next=$(semver ${release} -i minor)

git checkout -b release/${release}

./mvnw versions:set -D newVersion=${release}
git commit -am "Release ${release}"
./mvnw clean deploy scm:tag -P release -D tag=${release} -D pushChanges=false
Expand All @@ -17,3 +19,6 @@ git commit -am "Development ${next}-SNAPSHOT"

git push
git push --tags

git checkout master
git branch -D release/${release}

0 comments on commit 2cf1bd2

Please sign in to comment.