blob: 2c3ebab1fa5dc5e501a0db7ff96547a2d604596a [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"
vasraz8b1002a2021-12-08 22:12:52 +000023 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">
sebdet591810d2020-09-17 15:07:23 +020025 <parent>
26 <artifactId>catalog-be-plugins</artifactId>
27 <groupId>org.openecomp.sdc</groupId>
MichaelMorris53aed702021-09-28 16:08:53 +010028 <version>1.10.0-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>
vasraz8b1002a2021-12-08 22:12:52 +000046 <activation>
47 <activeByDefault>false</activeByDefault>
48 </activation>
sebdet591810d2020-09-17 15:07:23 +020049 <properties>
50 <skip.staging.artifacts>true</skip.staging.artifacts>
51 <docker.skip.build>false</docker.skip.build>
52 <docker.skip.tag>false</docker.skip.tag>
53 <docker.skip.push>false</docker.skip.push>
54 <docker.skip>false</docker.skip>
55 </properties>
vasraz8b1002a2021-12-08 22:12:52 +000056 <build>
57 <plugins>
58 <plugin>
59 <groupId>io.fabric8</groupId>
60 <artifactId>docker-maven-plugin</artifactId>
61 <configuration>
62 <verbose>${verbose}</verbose>
63 <apiVersion>${docker.api.version}</apiVersion>
64 <registry>${docker.registry}</registry>
65 <verbose>${verbose}</verbose>
66 <authConfig>
67 <pull>
68 <username>${docker.username}</username>
69 <password>${docker.password}</password>
70 </pull>
71 </authConfig>
72 <images>
73 <!-- Build backend image -->
74 <image>
75 <name>${docker.namespace}/sdc-backend-all-plugins</name>
76 <alias>sdc-backend-all-plugins</alias>
77 <build>
78 <cleanup>try</cleanup>
79 <dockerFile>backend-all-plugins/Dockerfile</dockerFile>
80 <tags>
81 <tag>latest</tag>
82 <tag>
83 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
84 </tag>
85 <tag>
86 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}
87 </tag>
88 </tags>
89 <assembly>
90 <descriptor>
91 backend-all-plugins/backend-all-plugins-files.xml
92 </descriptor>
93 <name>onap-sdc-backend-all-plugins</name>
94 </assembly>
95 </build>
96 </image>
97 </images>
98 </configuration>
99 <executions>
100 <execution>
101 <id>clean-images</id>
102 <phase>pre-clean</phase>
103 <goals>
104 <goal>remove</goal>
105 </goals>
106 </execution>
107 <execution>
108 <id>generate-images</id>
109 <phase>install</phase>
110 <goals>
111 <goal>build</goal>
112 </goals>
113 </execution>
114 <execution>
115 <id>push-images</id>
116 <phase>deploy</phase>
117 <goals>
118 <goal>push</goal>
119 </goals>
120 </execution>
121 </executions>
122 </plugin>
123 </plugins>
124 </build>
sebdet591810d2020-09-17 15:07:23 +0200125 </profile>
126 </profiles>
sebdet591810d2020-09-17 15:07:23 +0200127</project>