forked from it-at-m/dave-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Bayr
committed
Feb 15, 2024
1 parent
f0841ce
commit 87eda96
Showing
1 changed file
with
0 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,29 +62,10 @@ jobs: | |
with: | ||
node-version: 16 | ||
|
||
- name: Clean Maven Project Version | ||
id: set-version | ||
run: | | ||
current_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
echo "Current version: $current_version" | ||
new_version=$(echo $current_version | sed 's/-SNAPSHOT//') | ||
echo "New version: $new_version" | ||
mvn -B versions:set -DnewVersion=$new_version | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add pom.xml | ||
git commit -m "Bump main version to $new_version" | ||
git push | ||
echo "new_version=$new_version" >> $GITHUB_OUTPUT | ||
- name: Build with Maven | ||
run: mvn -B verify -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|