[VID-3] Setting docker image tag
[vid.git] / deliveries / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <groupId>org.openecomp.vid</groupId>
7                 <artifactId>vid-parent</artifactId>
8                 <version>1.0.0</version>
9         </parent>
10
11         <packaging>pom</packaging>
12         <groupId>org.openecomp.vid</groupId>
13         <artifactId>vid-deliveries</artifactId>
14
15         <name>VID Deliveries</name>
16         <description>ECOMP VID Deliveries</description>
17         <properties>
18                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
20                 <docker.push.registry>${docker_registry}</docker.push.registry>
21                 <docker.verbose>true</docker.verbose>
22         </properties>
23
24         <build>
25                 <finalName>${project.artifactId}-${project.version}</finalName>
26                 <plugins>
27                         <plugin>
28                                 <groupId>io.fabric8</groupId>
29                                 <artifactId>docker-maven-plugin</artifactId>
30                                 <version>0.16.5</version>
31
32                                 <configuration>
33                                         <verbose>true</verbose>
34
35                                         <apiVersion>1.23</apiVersion>
36                                         <images>
37                                                 <image>
38                                                         <name>openecomp/vid:${project.version}</name>
39                                                         <build>
40                                                                 <cleanup>remove</cleanup>
41                                                                 <dockerFileDir>docker-files</dockerFileDir>
42                                                                 <assembly>
43                                                                         <basedir>/</basedir>
44                                                                         <user>vidadmin:vidadmin:vidadmin</user>
45                                                                         <descriptor>assembly/assembly-for-plugin.xml</descriptor>
46                                                                 </assembly>
47                                                                 <tags>
48                                                                   <tag>1.1-STAGING-latest</tag>
49                                                                 </tags>
50                                                         </build>
51                                                 </image>
52                                         </images>
53                                 </configuration>
54
55                                 <executions>
56                                         <execution>
57                                                 <id>generate-image</id>
58                                                 <phase>deploy</phase>
59                                                 <goals>
60                                                         <goal>build</goal>
61                                                 </goals>
62                                         </execution>
63                                         
64                                         <execution>
65                                                 <id>push-image</id>
66                                                 <phase>deploy</phase>
67                                                 <goals>
68                                                         <goal>build</goal>
69                                                         <goal>push</goal>
70                                                 </goals>
71                                         </execution>
72                                 </executions>
73
74                         </plugin>
75
76                         <plugin>
77                                 <groupId>org.apache.maven.plugins</groupId>
78                                 <artifactId>maven-deploy-plugin</artifactId>
79                                 <version>2.8</version>
80                                 <configuration>
81                                         <skip>true</skip>
82                                 </configuration>
83                         </plugin>
84                 </plugins>
85         </build>
86
87 </project>