blob: f096c2b62308e42330267dc535b0aacf07fd12ab [file] [log] [blame]
jimmydot3982f4f2017-05-07 14:58:24 -04001<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>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +02006 <groupId>org.onap.vid</groupId>
jimmydot3982f4f2017-05-07 14:58:24 -04007 <artifactId>vid-parent</artifactId>
biniekbcb065c2018-11-22 16:17:37 +01008 <version>4.0.0-SNAPSHOT</version>
jimmydot3982f4f2017-05-07 14:58:24 -04009 </parent>
10
11 <packaging>pom</packaging>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020012 <groupId>org.onap.vid</groupId>
jimmydot3982f4f2017-05-07 14:58:24 -040013 <artifactId>vid-deliveries</artifactId>
14
15 <name>VID Deliveries</name>
Sonsino, Ofir (os0695)e40ad0f2018-09-12 14:48:55 +030016 <description>ONAP VID Deliveries</description>
jimmydot3982f4f2017-05-07 14:58:24 -040017 <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
kurczews501f9f42018-08-09 07:58:33 +020024 <profiles>
25
26 <profile>
27 <id>docker-proxy</id>
28 <!-- activate profile if environment variable `http_proxy` is set -->
29 <activation>
30 <property>
31 <name>env.http_proxy</name>
32 </property>
33 </activation>
34 <properties>
35 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
36 </properties>
37 </profile>
38
39 </profiles>
40
jimmydot3982f4f2017-05-07 14:58:24 -040041 <build>
42 <finalName>${project.artifactId}-${project.version}</finalName>
43 <plugins>
44 <plugin>
45 <groupId>io.fabric8</groupId>
46 <artifactId>docker-maven-plugin</artifactId>
47 <version>0.16.5</version>
48
49 <configuration>
50 <verbose>true</verbose>
51
52 <apiVersion>1.23</apiVersion>
53 <images>
54 <image>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020055 <name>onap/vid:${project.version}</name>
jimmydot3982f4f2017-05-07 14:58:24 -040056 <build>
57 <cleanup>remove</cleanup>
58 <dockerFileDir>docker-files</dockerFileDir>
59 <assembly>
60 <basedir>/</basedir>
61 <user>vidadmin:vidadmin:vidadmin</user>
62 <descriptor>assembly/assembly-for-plugin.xml</descriptor>
63 </assembly>
64 <tags>
Sonsino, Ofir (os0695)660da8a2018-10-24 15:00:44 +030065 <tag>4.0-STAGING-latest</tag>
Sonsino, Ofir (os0695)e40ad0f2018-09-12 14:48:55 +030066 <tag>latest</tag>
jimmydot3982f4f2017-05-07 14:58:24 -040067 </tags>
68
69 </build>
70 </image>
71 </images>
72 </configuration>
73
74 <executions>
75 <execution>
76 <id>generate-image</id>
Gary Wuf4760b42017-06-14 14:05:22 -070077 <phase>package</phase>
jimmydot3982f4f2017-05-07 14:58:24 -040078 <goals>
79 <goal>build</goal>
80 </goals>
81 </execution>
82
83 <execution>
84 <id>push-image</id>
85 <phase>deploy</phase>
86 <goals>
87 <goal>build</goal>
88 <goal>push</goal>
89 </goals>
90 </execution>
91 </executions>
92
93 </plugin>
94
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-deploy-plugin</artifactId>
98 <version>2.8</version>
99 <configuration>
100 <skip>true</skip>
101 </configuration>
102 </plugin>
103 </plugins>
104 </build>
105
106</project>