blob: 279392cf8456bc0a67bf24dbcdbfe788d58dcc12 [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>
42 </configuration>
43 </execution>
44 </executions>
45 </plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030046 </plugins>
47 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +020048
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030049 <profiles>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030050 <profile>
51 <id>docker</id>
52 <activation>
53 <activeByDefault>false</activeByDefault>
54 </activation>
55 <build>
56 <plugins>
57 <plugin>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030058 <groupId>io.fabric8</groupId>
59 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030060 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030061 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +020062 <registry>nexus3.onap.org:10001</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +030063 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +030064 <pull>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020065 <username>docker</username>
66 <password>docker</password>
67 </pull>
68 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030069 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +020070
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030071 <!-- Build cassandra image -->
72 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +020073 <name>onap/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030074 <alias>sdc-cassandra</alias>
75 <build>
76 <cleanup>try</cleanup>
77 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
78 <tags>
79 <tag>${docker.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030080 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
81 </tags>
82 </build>
83 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +020084
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030085 </images>
86 </configuration>
87 <executions>
88 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +030089 <id>clean-images</id>
90 <phase>pre-clean</phase>
91 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030092 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +030093 </goals>
94 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030095 <removeAll>true</removeAll>
vasraz73fa45c2020-01-31 14:38:43 +000096 <image>onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +030097 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030098 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +020099
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300100 <execution>
101 <id>generate-images</id>
102 <phase>package</phase>
103 <goals>
104 <goal>build</goal>
105 </goals>
106 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200107
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300108 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300109 <id>push-images</id>
110 <phase>deploy</phase>
111 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300112 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300113 </goals>
114 <configuration>
vasraz73fa45c2020-01-31 14:38:43 +0000115 <image>onap/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300116 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300117 </execution>
118 </executions>
119 </plugin>
120 </plugins>
121 </build>
122 </profile>
123 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200124</project>