bump spring boot to 3.2.0 #32
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
name: Build | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Build with Maven | |
run: mvn install --file pom.xml | |
- name: Upload war | |
uses: actions/upload-artifact@v3 | |
with: | |
name: jar | |
path: target/*.jar | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current branch | |
uses: actions/checkout@v3 | |
- name: Get current version | |
id: version | |
run: echo "::set-output name=prop::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)" | |
- run: echo ${{steps.version.outputs.prop}} | |
- name: Release snapshot | |
id: release-snapshot | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{steps.version.outputs.prop}} | |
release_name: Release ${{steps.version.outputs.prop}} | |
draft: false | |
prerelease: false | |
docker: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: ci | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download build | |
id: download | |
uses: actions/download-artifact@v3 | |
with: | |
name: jar | |
path: target/ | |
- name: Get current version | |
id: version | |
run: echo "::set-output name=prop::$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)" | |
- run: echo ${{steps.version.outputs.prop}} | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: ddecrulle/knowledge-back-office | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
tags: ${{steps.version.outputs.prop}} |