blob: 8d59410c14669249538121a6ed8690b4b3f73400 [file] [log] [blame]
sebdet591810d2020-09-17 15:07:23 +02001<!--
2============LICENSE_START=======================================================
3ONAP SDC
4================================================================================
5Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
6================================================================================
7Licensed under the Apache License, Version 2.0 (the "License");
8you may not use this file except in compliance with the License.
9You may obtain a copy of the License at
10 *
11 http://www.apache.org/licenses/LICENSE-2.0
12 *
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
18============LICENSE_END=========================================================
19================================================================================
20-->
21
22<project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <parent>
26 <artifactId>catalog-be-plugins</artifactId>
27 <groupId>org.openecomp.sdc</groupId>
Joanna Jeremicz1affa572020-11-30 11:35:07 +010028 <version>1.8.1-SNAPSHOT</version>
sebdet591810d2020-09-17 15:07:23 +020029 </parent>
30
31 <packaging>pom</packaging>
32 <modelVersion>4.0.0</modelVersion>
33
34 <artifactId>backend-all-plugins</artifactId>
35
36 <properties>
sebdet591810d2020-09-17 15:07:23 +020037 <docker.skip.build>true</docker.skip.build>
38 <docker.skip.push>true</docker.skip.push>
39 <docker.skip.tag>true</docker.skip.tag>
sebdet06672742020-09-24 22:24:19 +020040 <docker.skip>true</docker.skip>
sebdet591810d2020-09-17 15:07:23 +020041 </properties>
42
43 <profiles>
44 <profile>
45 <id>docker</id>
46 <properties>
47 <skip.staging.artifacts>true</skip.staging.artifacts>
48 <docker.skip.build>false</docker.skip.build>
49 <docker.skip.tag>false</docker.skip.tag>
50 <docker.skip.push>false</docker.skip.push>
51 <docker.skip>false</docker.skip>
52 </properties>
53 </profile>
54 </profiles>
55 <build>
56 <plugins>
57 <plugin>
58 <groupId>io.fabric8</groupId>
59 <artifactId>docker-maven-plugin</artifactId>
60 <configuration>
61 <apiVersion>${docker.api.version}</apiVersion>
62 <registry>nexus3.onap.org:10001</registry>
63 <verbose>true</verbose>
64 <authConfig>
65 <pull>
66 <username>docker</username>
67 <password>docker</password>
68 </pull>
69 </authConfig>
70 <images>
71 <!-- Build backend image -->
72 <image>
73 <name>onap/sdc-backend-all-plugins</name>
74 <alias>sdc-backend-all-plugins</alias>
75 <build>
76 <cleanup>try</cleanup>
77 <dockerFile>backend-all-plugins/Dockerfile</dockerFile>
78 <tags>
sebdetb988cb62020-09-25 15:48:10 +020079 <tag>latest</tag>
sebdet591810d2020-09-17 15:07:23 +020080 <tag>
81 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
82 </tag>
sebdetb988cb62020-09-25 15:48:10 +020083 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
sebdet591810d2020-09-17 15:07:23 +020084 </tags>
85 <assembly>
86 <descriptor>backend-all-plugins/backend-all-plugins-files.xml</descriptor>
87 <name>onap-sdc-backend-all-plugins</name>
88 </assembly>
89 </build>
90 </image>
91 </images>
92 </configuration>
93 <executions>
94 <execution>
95 <id>clean-images</id>
96 <phase>pre-clean</phase>
97 <goals>
98 <goal>remove</goal>
99 </goals>
100 </execution>
101 <execution>
102 <id>generate-images</id>
103 <phase>install</phase>
104 <goals>
105 <goal>build</goal>
106 </goals>
107 </execution>
108 <execution>
109 <id>push-images</id>
110 <phase>deploy</phase>
111 <goals>
112 <goal>push</goal>
113 </goals>
114 </execution>
115 </executions>
116 </plugin>
117 </plugins>
118 </build>
119</project>