blob: 6b7d59487f6c509619173a49d477b6028250d2ac [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>
MichaelMorris38812c32023-06-02 10:04:31 +010013 <version>1.13.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>
sebdetdf353be2020-09-21 22:13:05 +020062 <verbose>${verbose}</verbose>
sebdet591810d2020-09-17 15:07:23 +020063 <apiVersion>${docker.api.version}</apiVersion>
vasraz8b1002a2021-12-08 22:12:52 +000064 <registry>${docker.registry}</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +030065 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +030066 <pull>
vasraz8b1002a2021-12-08 22:12:52 +000067 <username>${docker.username}</username>
68 <password>${docker.password}</password>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020069 </pull>
70 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030071 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +020072
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030073 <!-- Build cassandra image -->
74 <image>
vasraz8b1002a2021-12-08 22:12:52 +000075 <name>${docker.namespace}/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030076 <alias>sdc-cassandra</alias>
77 <build>
78 <cleanup>try</cleanup>
79 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
80 <tags>
sebdetb988cb62020-09-25 15:48:10 +020081 <tag>latest</tag>
82 <tag>
83 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
84 </tag>
85 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030086 </tags>
87 </build>
88 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +020089
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030090 </images>
91 </configuration>
92 <executions>
93 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +030094 <id>clean-images</id>
95 <phase>pre-clean</phase>
96 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030097 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +030098 </goals>
99 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300100 <removeAll>true</removeAll>
vasraz8b1002a2021-12-08 22:12:52 +0000101 <image>${docker.namespace}/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300102 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300103 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200104
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300105 <execution>
106 <id>generate-images</id>
107 <phase>package</phase>
108 <goals>
109 <goal>build</goal>
110 </goals>
111 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200112
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300113 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300114 <id>push-images</id>
115 <phase>deploy</phase>
116 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300117 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300118 </goals>
119 <configuration>
vasraz8b1002a2021-12-08 22:12:52 +0000120 <image>${docker.namespace}/sdc-cassandra</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300121 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300122 </execution>
123 </executions>
124 </plugin>
125 </plugins>
126 </build>
127 </profile>
128 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200129</project>