diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-01 12:25:20 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-01 12:25:20 +0800 |
commit | 5c398ea8c946d5a311270e7dda34d8876b86a707 (patch) | |
tree | 6ea14181b79ec3dd6a07dc21999a3a2761877374 | |
parent | b3c72963f79580bddef8d5b51866134ef1a5ebe7 (diff) |
Update pom file of vfc-gvnfm-vnflcm
Add docker build and push profile
Change-Id: I31a4e3381ae73093cb771b2dfe270a5bf07bb543
Issue-Id: VFC-218
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/pom.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lcm/pom.xml b/lcm/pom.xml index 7aba16f1..4f025d56 100644 --- a/lcm/pom.xml +++ b/lcm/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/vnflcm</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> |