From: Michael Hwang Date: Thu, 14 Sep 2017 20:00:33 +0000 (-0400) Subject: Update pom to do Docker ops for build and deploy X-Git-Tag: v1.0.0~10 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3b421cdb1ad42df78f565d445ee75beca61bb722;p=dcaegen2%2Fplatform%2Fservicechange-handler.git Update pom to do Docker ops for build and deploy Change-Id: I9fc0ec612dd45038bd825f483fafd4c066d6565f Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang --- diff --git a/pom.xml b/pom.xml index 5979817..6196f30 100644 --- a/pom.xml +++ b/pom.xml @@ -176,7 +176,7 @@ ${project.version} java:8-jre - ["java", "-jar", "/opt/${project.build.finalName}.jar", "prod", "/opt/config.yml"] + ["java", "-jar", "/opt/${project.build.finalName}.jar", "prod", "http://consul:8500/v1/kv/service-change-handler?raw=true"] @@ -186,6 +186,39 @@ + + + build-image + package + + build + + + + tag-image-timestamped-version + deploy + + tag + + + ${project.artifactId} + ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}:${project.version}-${maven.build.timestamp} + true + + + + tag-image-latest-version + deploy + + tag + + + ${project.artifactId} + ${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.${project.artifactId}:LATEST + true + + +