Skip to content

Commit

Permalink
#25 build image after tagging a version
Browse files Browse the repository at this point in the history
  • Loading branch information
kasramp committed May 2, 2023
1 parent 234ef43 commit 5464986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if [[ "$LAST_COMMIT" != *"maven-release-plugin"* ]]; then
mvn -B clean release:clean release:prepare release:perform -Dusername=$USERNAME -Dpassword=$TOKEN -DtagNameFormat=@{artifactId}-beta-@{version} -Darguments="-Dmaven.deploy.skip=true"
else
mvn -B clean release:clean release:prepare release:perform -Dusername=$USERNAME -Dpassword=$TOKEN -Darguments="-Dmaven.deploy.skip=true" &&
mvn clean spring-boot:build-image &&
TAGGED_VERSION=$(git for-each-ref --sort=-creatordate --format='%(refname:short)' refs/tags --count 10 | grep -oP '^eris-(\d+).*' | head -1 | cut -d "-" -f2) &&
docker tag eris:"$TAGGED_VERSION" eris:latest &&
git fetch origin develop && git merge origin/master &&
git push https://$USERNAME:$TOKEN@github.com/kasramp/Eris.git HEAD:develop
fi
Expand Down

0 comments on commit 5464986

Please sign in to comment.