Skip to content

build(deps): bump org.springframework.boot:spring-boot-starter-parent… #191

build(deps): bump org.springframework.boot:spring-boot-starter-parent…

build(deps): bump org.springframework.boot:spring-boot-starter-parent… #191

Workflow file for this run

# 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: Build with Maven
run: mvn -B clean integration-test package assembly:single docker:build
# 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
# Docker hub action
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: push snapshot version
run: |
echo publishing docker container $app_ver
docker push docker.io/obsidiandynamics/kafdrop:$app_ver
-
name: push latest if it's a release
if: ${{ ! endsWith( env.app_ver, '-SNAPSHOT' ) }}
run: docker push docker.io/obsidiandynamics/kafdrop:latest