blob: 3768b8124deec9f946f28bd082a34390c2034921 [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>
Krzysztof Kwiecien4c1fe212017-07-21 11:37:05 +02008 <version>1.1.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>
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
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)ba59d122018-08-26 14:51:39 +030065 <tag>3.0-STAGING-latest</tag>
jimmydot3982f4f2017-05-07 14:58:24 -040066 </tags>
67
68 </build>
69 </image>
70 </images>
71 </configuration>
72
73 <executions>
74 <execution>
75 <id>generate-image</id>
Gary Wuf4760b42017-06-14 14:05:22 -070076 <phase>package</phase>
jimmydot3982f4f2017-05-07 14:58:24 -040077 <goals>
78 <goal>build</goal>
79 </goals>
80 </execution>
81
82 <execution>
83 <id>push-image</id>
84 <phase>deploy</phase>
85 <goals>
86 <goal>build</goal>
87 <goal>push</goal>
88 </goals>
89 </execution>
90 </executions>
91
92 </plugin>
93
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-deploy-plugin</artifactId>
97 <version>2.8</version>
98 <configuration>
99 <skip>true</skip>
100 </configuration>
101 </plugin>
102 </plugins>
103 </build>
104
105</project>