2b63dcb573661cadfb4d079317beac13b137031c
[oam/tr069-adapter.git] / db / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /*
4  * ============LICENSE_START========================================================================
5  * O-RAN-SC : tr-069-adapter
6  * =================================================================================================
7  * Copyright (C) 2020 CommScope Inc Intellectual Property.
8  * =================================================================================================
9  * This tr-069-adapter software file is distributed by CommScope Inc
10  * under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * This file is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ===============LICENSE_END=======================================================================
21 */
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24    <parent>
25       <groupId>org.commscope.tr069adapter</groupId>
26       <artifactId>tr069adapter</artifactId>
27       <version>1.0.0</version>
28    </parent>
29    <modelVersion>4.0.0</modelVersion>
30    <groupId>org.commscope.tr069adapter.db</groupId>
31    <artifactId>maria-db</artifactId>
32    <name>maria-db</name>
33    <url>http://maven.apache.org</url>
34    <properties>
35       <docker.image.name>o-ran-sc/tr069adapter-mariadb</docker.image.name>
36    </properties>
37    <build>
38       <plugins>
39          <plugin>
40             <groupId>io.fabric8</groupId>
41             <artifactId>docker-maven-plugin</artifactId>
42             <version>${docker-maven-plugin}</version>
43             <inherited>false</inherited>
44             <executions>
45                <execution>
46                   <id>generate-policy-agent-image</id>
47                   <phase>package</phase>
48                   <goals>
49                      <goal>build</goal>
50                                          <goal>save</goal>
51                   </goals>
52                   <configuration>
53                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
54                      <images>
55                         <image>
56                            <name>${docker.image.name}:${build.version}</name>
57                            <build>
58                               <cleanup>try</cleanup>
59                               <contextDir>${basedir}</contextDir>
60                               <dockerFile>Dockerfile</dockerFile>
61                               <tags>
62                                  <tag>${project.version}</tag>
63                               </tags>
64                            </build>
65                         </image>
66                      </images>
67                   </configuration>
68                </execution>
69                <execution>
70                   <id>push-policy-agent-image</id>
71                   <goals>
72                      <goal>build</goal>
73                      <goal>push</goal>
74                   </goals>
75                   <configuration>
76                      <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
77                      <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
78                      <images>
79                         <image>
80                            <name>${docker.image.name}:${project.version}</name>
81                            <build>
82                               <contextDir>${basedir}</contextDir>
83                               <dockerFile>Dockerfile</dockerFile>
84                               <args>
85                                  <JAR>${project.build.finalName}.jar</JAR>
86                               </args>
87                               <tags>
88                                  <tag>latest</tag>
89                               </tags>
90                            </build>
91                         </image>
92                      </images>
93                   </configuration>
94                </execution>
95             </executions>
96          </plugin>
97       </plugins>
98    </build>
99 </project>