Skip to content

Commit

Permalink
udate workflow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bayr committed Feb 15, 2024
1 parent f0841ce commit 87eda96
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 87eda96

Please sign in to comment.