Add staging and snapshot tags 23/2923/1
authorig6133 <ig6133@intl.att.com>
Sun, 2 Apr 2017 14:14:00 +0000 (17:14 +0300)
committerig6133 <ig6133@intl.att.com>
Sun, 2 Apr 2017 14:14:49 +0000 (17:14 +0300)
Change-Id: Icb31635c6a7abab2dd56a3d104fcc3ac4880726d
Signed-off-by: ig6133 <ig6133@intl.att.com>
sdc-os-chef/pom.xml

index 1c6d5e6..88bff4e 100644 (file)
@@ -11,6 +11,9 @@
                <version>1.1.0-SNAPSHOT</version>
        </parent>
 
+       <properties>
+               <docker.tag>${project.version}-SNAPSHOT-${maven.build.timestamp}</docker.tag>
+       </properties>
 
        <build>
                <plugins>
        </build>
 
        <profiles>
+               <profile>
+                       <id>docker-staging</id>
+                       <properties>
+                               <docker.tag>${project.version}-STAGING</docker.tag>
+                       </properties>
+               </profile>
                <profile>
                        <id>docker</id>
                        <build>
                                                                        <build>
                                                                                <cleanup>try</cleanup>
                                                                                <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
+                                                                               <tags>
+                                                                                       <tag>${docker.tag}</tag>
+                                                                               </tags>
                                                                        </build>
                                                                </image>
 
                                                                        <build>
                                                                                <cleanup>try</cleanup>
                                                                                <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
+                                                                               <tags>
+                                                                                       <tag>${docker.tag}</tag>
+                                                                               </tags>
                                                                        </build>
                                                                </image>
 
                                                                        <build>
                                                                                <cleanup>try</cleanup>
                                                                                <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
+                                                                               <tags>
+                                                                                       <tag>${docker.tag}</tag>
+                                                                               </tags>
                                                                        </build>
                                                                </image>
 
                                                                        <build>
                                                                                <cleanup>try</cleanup>
                                                                                <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
+                                                                               <tags>
+                                                                                       <tag>${docker.tag}</tag>
+                                                                               </tags>
                                                                        </build>
                                                                </image>
 
                                                                        <build>
                                                                                <cleanup>try</cleanup>
                                                                                <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
+                                                                               <tags>
+                                                                                       <tag>${docker.tag}</tag>
+                                                                               </tags>
                                                                        </build>
                                                                </image>
                                                                
                                                                        <build>
                                                                                <cleanup>try</cleanup>
                                                                                <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir>
+                                                                               <tags>
+                                                                                       <tag>${docker.tag}</tag>
+                                                                               </tags>
                                                                        </build>
                                                                </image>