blob: 42af6ab314d82ccf5093010678c1268b1d416fc8 [file] [log] [blame]
Ittay Stern122dfc12019-02-13 19:15:21 +02001<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.onap.vid</groupId>
7 <artifactId>vid-parent</artifactId>
Ittay Sterndd3ba982019-05-29 10:19:25 +03008 <version>5.0.0-SNAPSHOT</version>
Ittay Stern122dfc12019-02-13 19:15:21 +02009 </parent>
10
11 <packaging>pom</packaging>
12 <artifactId>vid-deliveries</artifactId>
13
14 <name>VID Deliveries</name>
15 <description>ONAP VID Deliveries</description>
16 <properties>
17 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
19 <docker.push.registry>${docker_registry}</docker.push.registry>
20 <docker.verbose>true</docker.verbose>
21 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
22 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
23
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
25 </properties>
26
27 <profiles>
28
29 <profile>
30 <id>docker-proxy</id>
31 <!-- activate profile if environment variable `http_proxy` is set -->
32 <activation>
33 <property>
34 <name>env.http_proxy</name>
35 </property>
36 </activation>
37 <properties>
38 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
39 </properties>
40 </profile>
41
42 </profiles>
43
44 <build>
45 <finalName>${project.artifactId}-${project.version}</finalName>
46 <plugins>
47 <plugin>
48 <groupId>io.fabric8</groupId>
49 <artifactId>docker-maven-plugin</artifactId>
50 <version>0.28.0</version>
51
52 <configuration>
53 <verbose>true</verbose>
54 <apiVersion>1.23</apiVersion>
55 <images>
56 <image>
57 <name>onap/vid:${project.version}</name>
58 <build>
59 <cleanup>remove</cleanup>
60 <dockerFileDir>docker-files</dockerFileDir>
61 <assembly>
62 <basedir>/</basedir>
63 <user>vidadmin:vidadmin:vidadmin</user>
64 <descriptor>assembly/assembly-for-plugin.xml</descriptor>
65 </assembly>
66 <tags>
Ittay Sterndd3ba982019-05-29 10:19:25 +030067 <tag>5.0-STAGING-latest</tag>
Ittay Stern122dfc12019-02-13 19:15:21 +020068 <tag>latest</tag>
69 <tag>${docker.tag}</tag>
70 <tag>${docker.latest.tag}</tag>
71 </tags>
72
73 </build>
74 </image>
75 </images>
76 </configuration>
77
78 <executions>
79 <execution>
80 <id>generate-image</id>
81 <phase>package</phase>
82 <goals>
83 <goal>build</goal>
84 </goals>
85 </execution>
86
87 <execution>
88 <id>push-image</id>
89 <phase>deploy</phase>
90 <goals>
91 <goal>build</goal>
92 <goal>push</goal>
93 </goals>
94 </execution>
95 </executions>
96
97 </plugin>
98
Ittay Stern122dfc12019-02-13 19:15:21 +020099 </plugins>
100 </build>
101
102</project>