blob: 27bee484b4f64821b1c0ed6cb2fabf404d3c5adf [file] [log] [blame]
Ruchira Agarwal03161922018-04-24 17:30:06 +00001<?xml version="1.0" encoding="UTF-8"?>
Dan Timoneyf20174d2020-08-10 14:09:14 -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/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
Ruchira Agarwal03161922018-04-24 17:30:06 +00004
5 <parent>
Dan Timoneyf20174d2020-08-10 14:09:14 -04006 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
Piotr Marcinkiewiczeba69282021-02-24 08:26:27 +01008 <version>2.0.7-SNAPSHOT</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +00009 </parent>
Dan Timoneyf20174d2020-08-10 14:09:14 -040010
Ruchira Agarwal03161922018-04-24 17:30:06 +000011 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-ansible-server</artifactId>
Piotr Marcinkiewiczeba69282021-02-24 08:26:27 +010013 <version>2.0.7-SNAPSHOT</version>
Dan Timoneyf20174d2020-08-10 14:09:14 -040014 <packaging>pom</packaging>
Ruchira Agarwal03161922018-04-24 17:30:06 +000015
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates ansible-server Docker container</description>
Dan Timoneyf20174d2020-08-10 14:09:14 -040018 <organization>
19 <name>ONAP</name>
20 </organization>
Ruchira Agarwal03161922018-04-24 17:30:06 +000021
22 <properties>
23 <image.name>onap/sdnc-ansible-server-image</image.name>
24 <sdnc.project.version>${project.version}</sdnc.project.version>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050025 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
Dan Timoney7f5a0a52020-08-11 11:20:49 -040026 <ccsdk.docker.version>1.0-STAGING-latest</ccsdk.docker.version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000027 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
28 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29 </properties>
30
Ruchira Agarwal03161922018-04-24 17:30:06 +000031 <build>
32 <plugins>
33 <plugin>
34 <groupId>org.codehaus.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
36 <executions>
37 <execution>
38 <phase>validate</phase>
39 <goals>
40 <goal>execute</goal>
41 </goals>
42 <configuration>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050043 <source>${basedir}/../TagVersion.groovy</source>
Ruchira Agarwal03161922018-04-24 17:30:06 +000044 </configuration>
45 </execution>
46 </executions>
47 </plugin>
48
49 <plugin>
50 <artifactId>maven-resources-plugin</artifactId>
51 <version>2.6</version>
52 <executions>
53 <execution>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010054 <id>copy-files</id>
Ruchira Agarwal03161922018-04-24 17:30:06 +000055 <goals>
56 <goal>copy-resources</goal>
57 </goals><!-- here the phase you need -->
58 <phase>validate</phase>
59 <configuration>
60 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
61 <resources>
62 <resource>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010063 <directory>src/main</directory>
Ruchira Agarwal03161922018-04-24 17:30:06 +000064 <includes>
Sylvain Desbureaux80020fa2019-01-23 11:14:30 +010065 <include>**/*</include>
Ruchira Agarwal03161922018-04-24 17:30:06 +000066 </includes>
67 <filtering>false</filtering>
68 </resource>
69 </resources>
70 </configuration>
71 </execution>
72 </executions>
73 </plugin>
Ruchira Agarwal03161922018-04-24 17:30:06 +000074 </plugins>
75 </build>
76
77 <profiles>
78 <profile>
79 <id>docker</id>
80 <build>
81 <plugins>
82 <plugin>
83 <groupId>io.fabric8</groupId>
84 <artifactId>docker-maven-plugin</artifactId>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040085 <version>0.28.0</version>
Ruchira Agarwal03161922018-04-24 17:30:06 +000086 <inherited>false</inherited>
87 <configuration>
88 <images>
89 <image>
90 <name>${image.name}</name>
91 <build>
92 <cleanup>try</cleanup>
93 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
Timoney, Dan (dt5972)b2eb9ed2019-08-20 15:40:38 -040094 <dockerFile>Dockerfile</dockerFile>
Ruchira Agarwal03161922018-04-24 17:30:06 +000095 <tags>
Timoney, Dan (dt5972)d4b1b9d2019-02-14 16:38:27 -050096 <tag>${project.docker.latestminortag.version}</tag>
97 <tag>${project.docker.latestfulltag.version}</tag>
98 <tag>${project.docker.latesttagtimestamp.version}</tag>
Ruchira Agarwal03161922018-04-24 17:30:06 +000099 </tags>
100 </build>
101 </image>
102 </images>
103 </configuration>
104 <executions>
105 <execution>
106 <id>generate-images</id>
107 <phase>package</phase>
108 <goals>
109 <goal>build</goal>
110 </goals>
111 </execution>
112
113 <execution>
114 <id>push-images</id>
115 <phase>deploy</phase>
116 <goals>
117 <goal>build</goal>
118 <goal>push</goal>
119 </goals>
120 </execution>
121 </executions>
122 </plugin>
123 </plugins>
124 </build>
125 </profile>
126 </profiles>
Ruchira Agarwal03161922018-04-24 17:30:06 +0000127</project>