From f59b8236fe488ea6ccbfa570d8f4752c55e3bf42 Mon Sep 17 00:00:00 2001 From: Lusheng Date: Thu, 9 Mar 2017 15:33:55 +0000 Subject: docker versioning in pom Change-Id: Ib04612dd90de5d2d51ce089bcda82bb9f46dd297 Signed-off-by: Lusheng --- pom.xml | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 6c1553b..da8f5c4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,16 +6,18 @@ org.openecomp.dcae.inventory dcae-inventory - 1.0.0-SNAPSHOT + 1.0.0 0.9.2 1.1.3 1.5.8 - 2017 AT&T Intellectual Property. All rights reserved. + + yyyyMMdd'T'HHmmss + nexus3.openecomp.org:10003 @@ -187,6 +189,19 @@ + + regex-property + + regex-property + + + docker.version + ${project.version} + (^[0-9]+.[0-9]+.[0-9]+$) + $1-STAGING + false + + @@ -225,13 +240,9 @@ 0.4.11 - dcae-inventory - - ${project.version} - + ${project.artifactId} openjdk:8-jre ["java", "-jar", "/opt/${project.build.finalName}.jar", "server", "/opt/config.yml"] - /opt @@ -240,6 +251,39 @@ + + + build-image + package + + build + + + + tag-image-timestamped-version + deploy + + tag + + + ${project.artifactId} + ${docker.registry}/openecomp/${project.artifactId}:${docker.version}-${maven.build.timestamp} + true + + + + tag-image-latest-version + deploy + + tag + + + ${project.artifactId} + ${docker.registry}/openecomp/${project.artifactId}:LATEST + true + + + -- cgit 1.2.3-korg