naming ms - pom updates for docker. 95/68595/1
authorbt2983 <bt2983@att.com>
Sun, 23 Sep 2018 22:39:54 +0000 (16:39 -0600)
committerbt2983 <bt2983@att.com>
Sun, 23 Sep 2018 22:39:54 +0000 (16:39 -0600)
Updates to pom.xml to fix the docker build issues. Set the right phase for copy, and adding additional tags to image.

Change-Id: I31726bfc6183bf2ccc2485d752093a8bb62a4703
Issue-ID: CCSDK-588
Signed-off-by: bt2983 <bt2983@att.com>
ms/neng/pom.xml

index 81c1e66..780bb07 100644 (file)
@@ -59,6 +59,8 @@
         <docker.verbose>true</docker.verbose>
         <ccsdk.project.version>${project.version}</ccsdk.project.version>
         <image.name>onap/ccsdk-apps-ms-neng</image.name>
+        <timestamp>${maven.build.timestamp}</timestamp>
+        <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
     </properties>
 
     <profiles>
                                 <goals>
                                     <goal>copy-resources</goal>
                                 </goals>
-                                <phase>validate</phase>
+                                <phase>package</phase>
                                 <configuration>
                                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
                                     <resources>
                                         <tags>
                                             <tag>${project.version}</tag>
                                             <tag>${project.docker.latesttag.version}</tag>
+                                            <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
                                         </tags>
                                     </build>
                                 </image>
             </plugins>
         </pluginManagement>
     </build>
-</project>
\ No newline at end of file
+</project>
+