aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-09-01 12:18:50 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-09-01 12:18:50 +0800
commit2636b73b5da8e1b44b226bc964894bbbd367d939 (patch)
treedffbbae1b721f11121a336d031f8f34f1b78fd1d /pom.xml
parentf9a1431adc1432921813263a8595eac577a09f17 (diff)
Update pom file of vfc-nfvo-lcm
Add docker build and push profile Change-Id: Ia8ae79798ffdf4e49a17aa137dce724ad4d75c38 Issue-Id: VFC-217 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index d921409a..54d726cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,4 +49,51 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.16.5</version>
+ <inherited>false</inherited>
+ <configuration>
+ <images>
+ <image>
+ <name>onap/vfc/nslcm</name>
+ <build>
+ <cleanup>try</cleanup>
+ <dockerFileDir>${basedir}/docker/</dockerFileDir>
+ <dockerFile>${basedir}/docker/Dockerfile</dockerFile>
+ <tags>
+ <tag>${project.version}-STAGING-latest</tag>
+ </tags>
+ </build>
+ </image>
+ </images>
+ </configuration>
+ <executions>
+ <execution>
+ <id>generate-images</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>push-images</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>build</goal>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>