From 083275ca742e63f6c228f62973fda790fed11b15 Mon Sep 17 00:00:00 2001 From: soimugeoWB <149394944+soimugeoWB@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:11:38 +0300 Subject: [PATCH] GitHub workflows (#9) * updated pom to use exec-maven-plugin for docker --------- Co-authored-by: Gheorghe Soimu --- pom.xml | 49 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index ad594a0..978605c 100644 --- a/pom.xml +++ b/pom.xml @@ -147,26 +147,47 @@ - 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 - - - -