jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 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>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 4 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 5 | <parent>
|
| 6 | <groupId>org.onap.vid</groupId>
|
| 7 | <artifactId>vid-parent</artifactId>
|
| 8 | <version>4.0.0-SNAPSHOT</version>
|
| 9 | </parent>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 10 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 11 | <packaging>pom</packaging>
|
| 12 | <artifactId>vid-deliveries</artifactId>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 13 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 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 | </properties>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 22 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 23 | <profiles>
|
kurczews | 501f9f4 | 2018-08-09 07:58:33 +0200 | [diff] [blame] | 24 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 25 | <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>
|
kurczews | 501f9f4 | 2018-08-09 07:58:33 +0200 | [diff] [blame] | 37 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 38 | </profiles>
|
kurczews | 501f9f4 | 2018-08-09 07:58:33 +0200 | [diff] [blame] | 39 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 40 | <build>
|
| 41 | <finalName>${project.artifactId}-${project.version}</finalName>
|
| 42 | <plugins>
|
| 43 | <plugin>
|
| 44 | <groupId>io.fabric8</groupId>
|
| 45 | <artifactId>docker-maven-plugin</artifactId>
|
sandovalfr | 18c50c6 | 2019-01-25 10:50:28 -0700 | [diff] [blame] | 46 | <version>0.28.0</version>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 47 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 48 | <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>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 66 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 67 | </build>
|
| 68 | </image>
|
| 69 | </images>
|
| 70 | </configuration>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 71 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 72 | <executions>
|
| 73 | <execution>
|
| 74 | <id>generate-image</id>
|
| 75 | <phase>package</phase>
|
| 76 | <goals>
|
| 77 | <goal>build</goal>
|
| 78 | </goals>
|
| 79 | </execution>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 80 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 81 | <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>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 90 |
|
biniek | 6f2b208 | 2018-12-17 11:18:05 +0100 | [diff] [blame] | 91 | </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>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 103 |
|
| 104 | </project>
|