blob: 1b89e1e5c5c981971e5e2161167e1c2225b0047d [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"
biniek6f2b2082018-12-17 11:18:05 +01002 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>
jimmydot3982f4f2017-05-07 14:58:24 -04004
biniek6f2b2082018-12-17 11:18:05 +01005 <parent>
6 <groupId>org.onap.vid</groupId>
7 <artifactId>vid-parent</artifactId>
8 <version>4.0.0-SNAPSHOT</version>
9 </parent>
jimmydot3982f4f2017-05-07 14:58:24 -040010
biniek6f2b2082018-12-17 11:18:05 +010011 <packaging>pom</packaging>
12 <artifactId>vid-deliveries</artifactId>
jimmydot3982f4f2017-05-07 14:58:24 -040013
biniek6f2b2082018-12-17 11:18:05 +010014 <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 </properties>
jimmydot3982f4f2017-05-07 14:58:24 -040022
biniek6f2b2082018-12-17 11:18:05 +010023 <profiles>
kurczews501f9f42018-08-09 07:58:33 +020024
biniek6f2b2082018-12-17 11:18:05 +010025 <profile>
26 <id>docker-proxy</id>
27 <!-- activate profile if environment variable `http_proxy` is set -->
28 <activation>
29 <property>
30 <name>env.http_proxy</name>
31 </property>
32 </activation>
33 <properties>
34 <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
35 </properties>
36 </profile>
kurczews501f9f42018-08-09 07:58:33 +020037
biniek6f2b2082018-12-17 11:18:05 +010038 </profiles>
kurczews501f9f42018-08-09 07:58:33 +020039
biniek6f2b2082018-12-17 11:18:05 +010040 <build>
41 <finalName>${project.artifactId}-${project.version}</finalName>
42 <plugins>
43 <plugin>
44 <groupId>io.fabric8</groupId>
45 <artifactId>docker-maven-plugin</artifactId>
sandovalfr18c50c62019-01-25 10:50:28 -070046 <version>0.28.0</version>
jimmydot3982f4f2017-05-07 14:58:24 -040047
biniek6f2b2082018-12-17 11:18:05 +010048 <configuration>
49 <verbose>true</verbose>
50 <apiVersion>1.23</apiVersion>
51 <images>
52 <image>
53 <name>onap/vid:${project.version}</name>
54 <build>
55 <cleanup>remove</cleanup>
56 <dockerFileDir>docker-files</dockerFileDir>
57 <assembly>
58 <basedir>/</basedir>
59 <user>vidadmin:vidadmin:vidadmin</user>
60 <descriptor>assembly/assembly-for-plugin.xml</descriptor>
61 </assembly>
62 <tags>
63 <tag>4.0-STAGING-latest</tag>
64 <tag>latest</tag>
65 </tags>
jimmydot3982f4f2017-05-07 14:58:24 -040066
biniek6f2b2082018-12-17 11:18:05 +010067 </build>
68 </image>
69 </images>
70 </configuration>
jimmydot3982f4f2017-05-07 14:58:24 -040071
biniek6f2b2082018-12-17 11:18:05 +010072 <executions>
73 <execution>
74 <id>generate-image</id>
75 <phase>package</phase>
76 <goals>
77 <goal>build</goal>
78 </goals>
79 </execution>
jimmydot3982f4f2017-05-07 14:58:24 -040080
biniek6f2b2082018-12-17 11:18:05 +010081 <execution>
82 <id>push-image</id>
83 <phase>deploy</phase>
84 <goals>
85 <goal>build</goal>
86 <goal>push</goal>
87 </goals>
88 </execution>
89 </executions>
jimmydot3982f4f2017-05-07 14:58:24 -040090
biniek6f2b2082018-12-17 11:18:05 +010091 </plugin>
92
93 <plugin>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-deploy-plugin</artifactId>
96 <version>2.8</version>
97 <configuration>
98 <skip>true</skip>
99 </configuration>
100 </plugin>
101 </plugins>
102 </build>
jimmydot3982f4f2017-05-07 14:58:24 -0400103
104</project>