Merge "Step versions on master after release"
[nonrtric.git] / test / usecases / odusliceassurance / goversion / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2021 Nordix Foundation.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23
24     <groupId>oransc.org</groupId>
25     <artifactId>o-du-slice-assurance</artifactId>
26     <version>1.1.0</version>
27     <properties>
28         <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
29     </properties>
30
31      <build>
32         <plugins>
33             <plugin>
34                 <groupId>io.fabric8</groupId>
35                 <artifactId>docker-maven-plugin</artifactId>
36                 <version>${docker-maven-plugin.version}</version>
37                 <inherited>false</inherited>
38                 <executions>
39                     <execution>
40                         <id>generate-nonrtric-o-du-slice-assurance-image</id>
41                         <phase>package</phase>
42                         <goals>
43                             <goal>build</goal>
44                         </goals>
45                         <configuration>
46                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
47                             <images>
48                                 <image>
49                                     <name>o-ran-sc/nonrtric-o-du-slice-assurance:${project.version}</name>
50                                     <build>
51                                         <cleanup>try</cleanup>
52                                         <contextDir>${basedir}</contextDir>
53                                         <dockerFile>Dockerfile</dockerFile>
54                                         <args>
55                                             <JAR>${project.build.finalName}.jar</JAR>
56                                         </args>
57                                         <tags>
58                                             <tag>${project.version}</tag>
59                                         </tags>
60                                     </build>
61                                 </image>
62                             </images>
63                         </configuration>
64                     </execution>
65                     <execution>
66                         <id>push-nonrtric-o-du-slice-assurance-image</id>
67                         <goals>
68                             <goal>build</goal>
69                             <goal>push</goal>
70                         </goals>
71                         <configuration>
72                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
73                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
74                             <images>
75                                 <image>
76                                     <name>o-ran-sc/nonrtric-o-du-slice-assurance:${project.version}</name>
77                                     <build>
78                                         <contextDir>${basedir}</contextDir>
79                                         <dockerFile>Dockerfile</dockerFile>
80                                         <args>
81                                             <JAR>${project.build.finalName}.jar</JAR>
82                                         </args>
83                                         <tags>
84                                             <tag>${project.version}</tag>
85                                             <tag>latest</tag>
86                                         </tags>
87                                     </build>
88                                 </image>
89                             </images>
90                         </configuration>
91                     </execution>
92                 </executions>
93             </plugin>
94       </plugins>
95     </build>
96 </project>