blob: bbc468398f459fc262323a9f6aadb0eec5de9fec [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.
liamfallona939e672023-02-14 11:20:40 +00005 Modifications Copyright (C) 2022-2023 Nordix Foundation.
Dmitry Puzikov7830af02019-03-27 13:55:13 +01006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
21-->
22
liamfallon18c442a2022-07-31 19:12:28 +010023<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">
Dmitry Puzikov7830af02019-03-27 13:55:13 +010024
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>
liamfallonc2c575b2023-11-10 18:53:13 +000030 <version>3.0.3-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>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010048 <executions>
49 <execution>
liamfallon18c442a2022-07-31 19:12:28 +010050 <phase>prepare-package</phase>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010051 <goals>
52 <goal>execute</goal>
53 </goals>
54 <configuration>
Taka Cho446cd492021-08-10 13:38:45 -040055 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010056 </configuration>
57 </execution>
58 </executions>
59 </plugin>
60 <plugin>
danielhanrahancf99a6b2022-06-28 17:39:32 +010061 <groupId>io.github.git-commit-id</groupId>
62 <artifactId>git-commit-id-maven-plugin</artifactId>
63 </plugin>
64 <plugin>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010065 <groupId>io.fabric8</groupId>
66 <artifactId>docker-maven-plugin</artifactId>
Jim Hahn0fe23332020-01-13 16:36:38 -050067
Dmitry Puzikov7830af02019-03-27 13:55:13 +010068 <configuration>
69 <verbose>true</verbose>
70 <apiVersion>1.23</apiVersion>
71 <pullRegistry>${docker.pull.registry}</pullRegistry>
72 <pushRegistry>${docker.push.registry}</pushRegistry>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010073 <images>
74 <image>
liamfallon4fe6a2e2021-04-19 14:10:43 +010075 <name>${docker.jre.imagename}</name>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010076 <build>
77 <cleanup>try</cleanup>
78 <dockerFile>Dockerfile</dockerFile>
79 <tags>
RossC3d168b02020-06-16 11:41:49 +010080 <tag>${project.version}</tag>
81 <tag>${project.version}-${maven.build.timestamp}</tag>
Taka Cho446cd492021-08-10 13:38:45 -040082 <tag>${project.docker.latest.minmax.tag.version}</tag>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010083 </tags>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010084 </build>
85 </image>
86 </images>
87 </configuration>
88
89 <executions>
90 <execution>
liamfallon18c442a2022-07-31 19:12:28 +010091 <id>clean-jre-image</id>
92 <phase>prepare-package</phase>
Dmitry Puzikov7830af02019-03-27 13:55:13 +010093 <goals>
94 <goal>remove</goal>
95 </goals>
96 <configuration>
97 <removeAll>true</removeAll>
98 </configuration>
99 </execution>
100
101 <execution>
liamfallon18c442a2022-07-31 19:12:28 +0100102 <id>generate-jre-image</id>
103 <phase>package</phase>
Dmitry Puzikov7830af02019-03-27 13:55:13 +0100104 <goals>
105 <goal>build</goal>
106 </goals>
107 </execution>
108
109 <execution>
liamfallon18c442a2022-07-31 19:12:28 +0100110 <id>push-jre-image</id>
Dmitry Puzikov7830af02019-03-27 13:55:13 +0100111 <phase>deploy</phase>
112 <goals>
113 <goal>build</goal>
114 <goal>push</goal>
115 </goals>
Dmitry Puzikov7830af02019-03-27 13:55:13 +0100116 </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>
liamfallon18c442a2022-07-31 19:12:28 +0100135</project>