build(deps-dev): bump testcontainers.version from 1.20.2 to 1.20.3 (#… #197
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: 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 |