blob: 400f0e71237213741889f5c610f2159556cd8815 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Michael Lando451a3402017-02-19 10:28:42 +02003
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03004 <modelVersion>4.0.0</modelVersion>
Michael Lando451a3402017-02-19 10:28:42 +02005
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03006 <artifactId>sdc-os-chef</artifactId>
Tal Gitelman0c3b1892017-10-04 16:56:23 +03007 <packaging>pom</packaging>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02008
Michael Lando451a3402017-02-19 10:28:42 +02009
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
Joanna Jeremicz1affa572020-11-30 11:35:07 +010013 <version>1.8.1-SNAPSHOT</version>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030014 </parent>
Michael Lando451a3402017-02-19 10:28:42 +020015
Michael Landoed64b5e2017-06-09 03:19:04 +030016
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030017 <build>
18 <plugins>
19 <plugin>
dekstroza37843cb2018-05-18 14:42:24 +010020 <groupId>com.github.sylvainlaurent.maven</groupId>
21 <artifactId>yaml-json-validator-maven-plugin</artifactId>
22 <executions>
23 <execution>
24 <id>validate</id>
25 <phase>validate</phase>
26 <goals>
27 <goal>validate</goal>
28 </goals>
29 <configuration>
30 <validationSets>
31 <validationSet>
32 <includes>
33 <include>**/*.y*ml</include>
34 </includes>
35 </validationSet>
36 <validationSet>
37 <includes>
38 <include>**/*.json</include>
39 </includes>
40 </validationSet>
41 </validationSets>
JulienBe6bd3d3a2020-06-24 15:35:23 +020042 <skip>${skipYamlJsonValidator}</skip>
dekstroza37843cb2018-05-18 14:42:24 +010043 </configuration>
44 </execution>
45 </executions>
46 </plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030047 </plugins>
48 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +020049
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030050 <profiles>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030051 <profile>
52 <id>docker</id>
53 <activation>
54 <activeByDefault>false</activeByDefault>
55 </activation>
56 <build>
57 <plugins>
58 <plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030059 <groupId>io.fabric8</groupId>
60 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030061 <configuration>
sebdet591810d2020-09-17 15:07:23 +020062 <apiVersion>${docker.api.version}</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +020063 <registry>nexus3.onap.org:10001</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +030064 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +030065 <pull>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020066 <username>docker</username>
67 <password>docker</password>
68 </pull>
69 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030070 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +020071
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030072 <!-- Build cassandra image -->
73 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +020074 <name>onap/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030075 <alias>sdc-cassandra</alias>
76 <build>
77 <cleanup>try</cleanup>
78 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
79 <tags>
sebdetb988cb62020-09-25 15:48:10 +020080 <tag>latest</tag>
81 <tag>
82 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
83 </tag>
84 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030085 </tags>
86 </build>
87 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +020088
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030089 </images>
90 </configuration>
91 <executions>
92 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +030093 <id>clean-images</id>
94 <phase>pre-clean</phase>
95 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030096 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +030097 </goals>
98 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030099 <removeAll>true</removeAll>
vasraz73fa45c2020-01-31 14:38:43 +0000100 <image>onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300101 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300102 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200103
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300104 <execution>
105 <id>generate-images</id>
106 <phase>package</phase>
107 <goals>
108 <goal>build</goal>
109 </goals>
110 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200111
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300112 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300113 <id>push-images</id>
114 <phase>deploy</phase>
115 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300116 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300117 </goals>
118 <configuration>
vasraz73fa45c2020-01-31 14:38:43 +0000119 <image>onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300120 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300121 </execution>
122 </executions>
123 </plugin>
124 </plugins>
125 </build>
126 </profile>
127 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200128</project>