Skip to content

Split massive classreader.TestXMLPrinter between unit and integration… #11

Split massive classreader.TestXMLPrinter between unit and integration…

Split massive classreader.TestXMLPrinter between unit and integration… #11

name: Release from Tag
on:
push:
tags:
- "*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.head_commit.id }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Generate distribution artifacts
run: ant -Drelease=${{ github.ref_name }} dist
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
body: |
Release ${{ github.ref_name }}
Compiled with Java 17.
files: dist/*
- name: URL to new release
run: echo "Dependency Finder [${{ github.ref_name }}](${{ steps.create_release.outputs.url }})" >> $GITHUB_STEP_SUMMARY
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
build-args: |
version=${{ github.ref_name }}
push: true
tags: |
jeantessier/dependency-finder-tomcat:${{ github.ref_name }}
jeantessier/dependency-finder-tomcat:latest