blob: 6a9fb665aa68f782c20bb795dc210d59998e084e [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>
vasraz0dea7122020-10-26 12:53:23 +000028 <version>1.7.2-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>
andre.schmid567623e2020-12-09 13:47:20 +000073 <name>uds/sdc-backend-all-plugins</name>
sebdet591810d2020-09-17 15:07:23 +020074 <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>
andre.schmid567623e2020-12-09 13:47:20 +000080 <tag>${uds.version}-${maven.build.timestamp}</tag>
81 <tag>${uds.docker.staging.version}-STAGING-latest</tag>
sebdet591810d2020-09-17 15:07:23 +020082 </tags>
83 <assembly>
84 <descriptor>backend-all-plugins/backend-all-plugins-files.xml</descriptor>
85 <name>onap-sdc-backend-all-plugins</name>
86 </assembly>
87 </build>
88 </image>
89 </images>
90 </configuration>
91 <executions>
92 <execution>
93 <id>clean-images</id>
94 <phase>pre-clean</phase>
95 <goals>
96 <goal>remove</goal>
97 </goals>
98 </execution>
99 <execution>
100 <id>generate-images</id>
101 <phase>install</phase>
102 <goals>
103 <goal>build</goal>
104 </goals>
105 </execution>
106 <execution>
107 <id>push-images</id>
108 <phase>deploy</phase>
109 <goals>
110 <goal>push</goal>
111 </goals>
112 </execution>
113 </executions>
114 </plugin>
115 </plugins>
116 </build>
117</project>