build(deps): bump org.springframework.boot:spring-boot-starter-parent… #204
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Release with mvn | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- | |
name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- | |
name: app version | |
run: | | |
echo "app_ver=$(mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout)" | |
echo "app_ver=$(mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# Docker hub action | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build with Maven | |
run: mvn -B clean integration-test package assembly:single docker:build docker:push | |
# github_release: | |
- | |
name: github release | |
if: ${{ ! endsWith( env.app_ver, '-SNAPSHOT' ) }} | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "./target/kafdrop-*.jar" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ env.app_ver }} | |
commit: "master" | |
generateReleaseNotes: true | |
- | |
name: push latest if it's a release | |
if: ${{ ! endsWith( env.app_ver, '-SNAPSHOT' ) }} | |
run: docker buildx imagetools create docker.io/obsidiandynamics/kafdrop:$app_ver --tag docker.io/obsidiandynamics/kafdrop:latest |