blob: 7db0d74180d46ce4e0d0368207624c3380f4e11d [file] [log] [blame]
Ruchira Agarwal03161922018-04-24 17:30:06 +00001<?xml version="1.0" encoding="UTF-8"?>
Timoney, Dan (dt5972)84238e12019-03-18 17:23:08 -04002<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Ruchira Agarwal03161922018-04-24 17:30:06 +00003
4 <parent>
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
Dan Timoney1012cdd2020-08-07 14:50:14 -04007 <version>2.0.0</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +00008 </parent>
9 <modelVersion>4.0.0</modelVersion>
10 <packaging>pom</packaging>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-ansible-server</artifactId>
Dan Timoney03c6d762020-03-18 09:30:59 -040013 <version>2.0.0-SNAPSHOT</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000014
15 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
16 <description>Creates ansible-server Docker container</description>
17
18 <properties>
19 <image.name>onap/sdnc-ansible-server-image</image.name>
20 <sdnc.project.version>${project.version}</sdnc.project.version>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050021 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
Timoney, Dan (dt5972)3009eda2019-09-17 16:25:48 -040022 <ccsdk.docker.version>0.7-STAGING-latest</ccsdk.docker.version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000023 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
25 </properties>
26
27
28 <build>
29 <plugins>
30 <plugin>
31 <groupId>org.codehaus.groovy.maven</groupId>
32 <artifactId>gmaven-plugin</artifactId>
33 <executions>
34 <execution>
35 <phase>validate</phase>
36 <goals>
37 <goal>execute</goal>
38 </goals>
39 <configuration>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050040 <source>${basedir}/../TagVersion.groovy</source>
Ruchira Agarwal03161922018-04-24 17:30:06 +000041 </configuration>
42 </execution>
43 </executions>
44 </plugin>
45
46 <plugin>
47 <artifactId>maven-resources-plugin</artifactId>
48 <version>2.6</version>
49 <executions>
50 <execution>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010051 <id>copy-files</id>
Ruchira Agarwal03161922018-04-24 17:30:06 +000052 <goals>
53 <goal>copy-resources</goal>
54 </goals><!-- here the phase you need -->
55 <phase>validate</phase>
56 <configuration>
57 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
58 <resources>
59 <resource>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010060 <directory>src/main</directory>
Ruchira Agarwal03161922018-04-24 17:30:06 +000061 <includes>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010062 <include>**/*</include>
Ruchira Agarwal03161922018-04-24 17:30:06 +000063 </includes>
64 <filtering>false</filtering>
65 </resource>
66 </resources>
67 </configuration>
68 </execution>
69 </executions>
70 </plugin>
Ruchira Agarwal03161922018-04-24 17:30:06 +000071 </plugins>
72 </build>
73
74 <profiles>
75 <profile>
76 <id>docker</id>
77 <build>
78 <plugins>
79 <plugin>
80 <groupId>io.fabric8</groupId>
81 <artifactId>docker-maven-plugin</artifactId>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040082 <version>0.28.0</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000083 <inherited>false</inherited>
84 <configuration>
85 <images>
86 <image>
87 <name>${image.name}</name>
88 <build>
89 <cleanup>try</cleanup>
90 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040091 <dockerFile>Dockerfile</dockerFile>
Ruchira Agarwal03161922018-04-24 17:30:06 +000092 <tags>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050093 <tag>${project.docker.latestminortag.version}</tag>
94 <tag>${project.docker.latestfulltag.version}</tag>
95 <tag>${project.docker.latesttagtimestamp.version}</tag>
Ruchira Agarwal03161922018-04-24 17:30:06 +000096 </tags>
97 </build>
98 </image>
99 </images>
100 </configuration>
101 <executions>
102 <execution>
103 <id>generate-images</id>
104 <phase>package</phase>
105 <goals>
106 <goal>build</goal>
107 </goals>
108 </execution>
109
110 <execution>
111 <id>push-images</id>
112 <phase>deploy</phase>
113 <goals>
114 <goal>build</goal>
115 <goal>push</goal>
116 </goals>
117 </execution>
118 </executions>
119 </plugin>
120 </plugins>
121 </build>
122 </profile>
123 </profiles>
124 <organization>
125 <name>ONAP</name>
126 </organization>
127</project>