From d80c76d12161cbfb31b1c5d8980b2ecdc2527289 Mon Sep 17 00:00:00 2001 From: soimugeoWB <149394944+soimugeoWB@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:35:38 +0300 Subject: [PATCH] updated release.yaml and pom.xml (#20) Co-authored-by: Gheorghe Soimu --- .github/workflows/release.yaml | 4 +- pom.xml | 151 ++++++++------------------------- 2 files changed, 37 insertions(+), 118 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 22c5dfb..3818b9f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,7 +62,7 @@ jobs: echo "New version: $new_version" mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false - echo ":: set-output name=new_version::$new_version" + echo "::set-output name=new_version::$new_version" - name: Commit new version run: | git config --global user.name "github-actions[bot]" @@ -73,7 +73,7 @@ jobs: git push origin HEAD:${GITHUB_REF##*/} git push origin ${{ steps.bump.outputs.new_version }} - name: Build and Publish package - run: mvn --batch-mode -Prelease package dockerfile:push + run: mvn --batch-mode package install - name: Release uses: softprops/action-gh-release@v1 env: diff --git a/pom.xml b/pom.xml index 4044f68..7ed1679 100644 --- a/pom.xml +++ b/pom.xml @@ -176,135 +176,54 @@ - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 16 - 16 - - org.springframework.boot spring-boot-maven-plugin - com.spotify - dockerfile-maven-plugin - 1.4.13 + org.codehaus.mojo + exec-maven-plugin + 3.3.0 - default + docker-build + package - build + exec + + docker + ${project.basedir} + + build + -f + Dockerfile + --build-arg + JAR_FILE=${project.artifactId}-${project.version}.jar + -t + protegeproject/${project.artifactId}:${project.version} + . + + + + + docker-push + install + + exec + + + docker + ${project.basedir} + + push + protegeproject/${project.artifactId}:${project.version} + + - - protegeproject/${project.artifactId} - ${project.version} - - ${project.build.finalName}.jar - - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.1.2 - - --add-opens java.base/sun.net=ALL-UNNAMED - - - - release - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.2.0 - - none - 16 - - - - attach-javadocs - - jar - - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 - true - - ossrh - https://oss.sonatype.org - true - - - - - com.thoughtworks.xstream - xstream - 1.4.15 - - - - - - - - -