blob: 0778e4e4100bc602a5d6acfd5bbbc172455fea76 [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>
Ofir Sonsino09d87892020-03-12 20:52:42 +020013 <version>1.7.0-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>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030062 <apiVersion>1.23</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>
80 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030081 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
82 </tags>
83 </build>
84 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +020085
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030086 </images>
87 </configuration>
88 <executions>
89 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +030090 <id>clean-images</id>
91 <phase>pre-clean</phase>
92 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030093 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +030094 </goals>
95 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030096 <removeAll>true</removeAll>
vasraz73fa45c2020-01-31 14:38:43 +000097 <image>onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +030098 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030099 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200100
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300101 <execution>
102 <id>generate-images</id>
103 <phase>package</phase>
104 <goals>
105 <goal>build</goal>
106 </goals>
107 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200108
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300109 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300110 <id>push-images</id>
111 <phase>deploy</phase>
112 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300113 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300114 </goals>
115 <configuration>
vasraz73fa45c2020-01-31 14:38:43 +0000116 <image>onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300117 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300118 </execution>
119 </executions>
120 </plugin>
121 </plugins>
122 </build>
123 </profile>
124 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200125</project>