summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorig6133 <ig6133@intl.att.com>2017-04-02 17:14:00 +0300
committerig6133 <ig6133@intl.att.com>2017-04-02 17:14:49 +0300
commit142d2e66f8a3f2cf6266817c01b54ff7f92649c3 (patch)
tree69049ddff2178da944a246a6d5f4094c098c321c
parentbd163afaa1e9ee6698b1f3c3eb9c3605f0c3d84d (diff)
Add staging and snapshot tags
Change-Id: Icb31635c6a7abab2dd56a3d104fcc3ac4880726d Signed-off-by: ig6133 <ig6133@intl.att.com>
-rw-r--r--sdc-os-chef/pom.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/sdc-os-chef/pom.xml b/sdc-os-chef/pom.xml
index 1c6d5e6ed5..88bff4e778 100644
--- a/sdc-os-chef/pom.xml
+++ b/sdc-os-chef/pom.xml
@@ -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>
@@ -47,6 +50,12 @@
<profiles>
<profile>
+ <id>docker-staging</id>
+ <properties>
+ <docker.tag>${project.version}-STAGING</docker.tag>
+ </properties>
+ </profile>
+ <profile>
<id>docker</id>
<build>
<plugins>
@@ -134,6 +143,9 @@
<build>
<cleanup>try</cleanup>
<dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
+ <tags>
+ <tag>${docker.tag}</tag>
+ </tags>
</build>
</image>
@@ -144,6 +156,9 @@
<build>
<cleanup>try</cleanup>
<dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
+ <tags>
+ <tag>${docker.tag}</tag>
+ </tags>
</build>
</image>
@@ -154,6 +169,9 @@
<build>
<cleanup>try</cleanup>
<dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
+ <tags>
+ <tag>${docker.tag}</tag>
+ </tags>
</build>
</image>
@@ -164,6 +182,9 @@
<build>
<cleanup>try</cleanup>
<dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
+ <tags>
+ <tag>${docker.tag}</tag>
+ </tags>
</build>
</image>
@@ -174,6 +195,9 @@
<build>
<cleanup>try</cleanup>
<dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
+ <tags>
+ <tag>${docker.tag}</tag>
+ </tags>
</build>
</image>
@@ -184,6 +208,9 @@
<build>
<cleanup>try</cleanup>
<dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir>
+ <tags>
+ <tag>${docker.tag}</tag>
+ </tags>
</build>
</image>