blob: a0e380d1b5aa06c9143a911173b196544cd68eff [file] [log] [blame]
Dmitry Puzikov7830af02019-03-27 13:55:13 +01001<!--
2 ============LICENSE_START=======================================================
Dmitry Puzikovc8e918d2019-04-02 10:05:05 +02003 Copyright (C) 2019 Ericsson, Tieto. All rights reserved.
Jim Hahn0fe23332020-01-13 16:36:38 -05004 Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
Dmitry Puzikov7830af02019-03-27 13:55:13 +01005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21
22<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25 <modelVersion>4.0.0</modelVersion>
26
27 <parent>
28 <groupId>org.onap.policy.docker</groupId>
Jim Hahn0fe23332020-01-13 16:36:38 -050029 <artifactId>policy-jre</artifactId>
Jim Hahn7f76b812021-08-25 12:38:21 -040030 <version>2.3.1-SNAPSHOT</version>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010031 </parent>
32
33 <packaging>pom</packaging>
Jim Hahn0fe23332020-01-13 16:36:38 -050034 <artifactId>policy-jre-alpine</artifactId>
35 <name>Policy alpine jre docker image</name>
36 <description>Policy alpine jre docker image</description>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010037
liamfallon4fe6a2e2021-04-19 14:10:43 +010038 <properties>
39 <docker.jre.imagename>onap/policy-jre-alpine</docker.jre.imagename>
40 </properties>
41
Dmitry Puzikov7830af02019-03-27 13:55:13 +010042 <build>
43 <finalName>${project.artifactId}-${project.version}</finalName>
44 <plugins>
45 <plugin>
Taka Cho446cd492021-08-10 13:38:45 -040046 <groupId>org.codehaus.gmaven</groupId>
47 <artifactId>groovy-maven-plugin</artifactId>
48 <version>2.1.1</version>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010049 <executions>
50 <execution>
RossC3d168b02020-06-16 11:41:49 +010051 <phase>validate</phase>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010052 <goals>
53 <goal>execute</goal>
54 </goals>
55 <configuration>
Taka Cho446cd492021-08-10 13:38:45 -040056 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010057 </configuration>
58 </execution>
59 </executions>
60 </plugin>
61 <plugin>
62 <groupId>io.fabric8</groupId>
63 <artifactId>docker-maven-plugin</artifactId>
Jim Hahn0fe23332020-01-13 16:36:38 -050064
Dmitry Puzikov7830af02019-03-27 13:55:13 +010065 <configuration>
66 <verbose>true</verbose>
67 <apiVersion>1.23</apiVersion>
68 <pullRegistry>${docker.pull.registry}</pullRegistry>
69 <pushRegistry>${docker.push.registry}</pushRegistry>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010070 <images>
71 <image>
liamfallon4fe6a2e2021-04-19 14:10:43 +010072 <name>${docker.jre.imagename}</name>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010073 <build>
74 <cleanup>try</cleanup>
75 <dockerFile>Dockerfile</dockerFile>
76 <tags>
RossC3d168b02020-06-16 11:41:49 +010077 <tag>${project.version}</tag>
78 <tag>${project.version}-${maven.build.timestamp}</tag>
Taka Cho446cd492021-08-10 13:38:45 -040079 <tag>${project.docker.latest.minmax.tag.version}</tag>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010080 </tags>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010081 </build>
82 </image>
83 </images>
84 </configuration>
85
86 <executions>
87 <execution>
88 <id>clean-images</id>
89 <phase>pre-clean</phase>
90 <goals>
91 <goal>remove</goal>
92 </goals>
93 <configuration>
94 <removeAll>true</removeAll>
95 </configuration>
96 </execution>
97
98 <execution>
99 <id>generate-images</id>
100 <phase>generate-sources</phase>
101 <goals>
102 <goal>build</goal>
103 </goals>
104 </execution>
105
106 <execution>
107 <id>push-images</id>
108 <phase>deploy</phase>
109 <goals>
110 <goal>build</goal>
111 <goal>push</goal>
112 </goals>
113 <configuration>
liamfallon4fe6a2e2021-04-19 14:10:43 +0100114 <image>${docker.jre.imagename}</image>
Dmitry Puzikov7830af02019-03-27 13:55:13 +0100115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-deploy-plugin</artifactId>
122 <configuration>
123 <skip>true</skip>
124 </configuration>
125 </plugin>
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-install-plugin</artifactId>
129 <configuration>
130 <skip>true</skip>
131 </configuration>
132 </plugin>
133 </plugins>
134 </build>
135</project>