Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
Dmitry Puzikov | c8e918d | 2019-04-02 10:05:05 +0200 | [diff] [blame] | 3 | Copyright (C) 2019 Ericsson, Tieto. All rights reserved. |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 5 | ================================================================================ |
| 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 Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 29 | <artifactId>policy-jre</artifactId> |
Jim Hahn | 24fec4d | 2021-03-11 11:33:28 -0500 | [diff] [blame] | 30 | <version>2.3.0-SNAPSHOT</version> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 31 | </parent> |
| 32 | |
| 33 | <packaging>pom</packaging> |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 34 | <artifactId>policy-jre-alpine</artifactId> |
| 35 | <name>Policy alpine jre docker image</name> |
| 36 | <description>Policy alpine jre docker image</description> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 37 | |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 38 | <properties> |
| 39 | <docker.jre.imagename>onap/policy-jre-alpine</docker.jre.imagename> |
| 40 | </properties> |
| 41 | |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 42 | <build> |
| 43 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 44 | <plugins> |
| 45 | <plugin> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame^] | 46 | <groupId>org.codehaus.gmaven</groupId> |
| 47 | <artifactId>groovy-maven-plugin</artifactId> |
| 48 | <version>2.1.1</version> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 49 | <executions> |
| 50 | <execution> |
RossC | 3d168b0 | 2020-06-16 11:41:49 +0100 | [diff] [blame] | 51 | <phase>validate</phase> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 52 | <goals> |
| 53 | <goal>execute</goal> |
| 54 | </goals> |
| 55 | <configuration> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame^] | 56 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 57 | </configuration> |
| 58 | </execution> |
| 59 | </executions> |
| 60 | </plugin> |
| 61 | <plugin> |
| 62 | <groupId>io.fabric8</groupId> |
| 63 | <artifactId>docker-maven-plugin</artifactId> |
Jim Hahn | 0fe2333 | 2020-01-13 16:36:38 -0500 | [diff] [blame] | 64 | |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 65 | <configuration> |
| 66 | <verbose>true</verbose> |
| 67 | <apiVersion>1.23</apiVersion> |
| 68 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 69 | <pushRegistry>${docker.push.registry}</pushRegistry> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 70 | <images> |
| 71 | <image> |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 72 | <name>${docker.jre.imagename}</name> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 73 | <build> |
| 74 | <cleanup>try</cleanup> |
| 75 | <dockerFile>Dockerfile</dockerFile> |
| 76 | <tags> |
RossC | 3d168b0 | 2020-06-16 11:41:49 +0100 | [diff] [blame] | 77 | <tag>${project.version}</tag> |
| 78 | <tag>${project.version}-${maven.build.timestamp}</tag> |
Taka Cho | 446cd49 | 2021-08-10 13:38:45 -0400 | [diff] [blame^] | 79 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 80 | </tags> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 81 | </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> |
liamfallon | 4fe6a2e | 2021-04-19 14:10:43 +0100 | [diff] [blame] | 114 | <image>${docker.jre.imagename}</image> |
Dmitry Puzikov | 7830af0 | 2019-03-27 13:55:13 +0100 | [diff] [blame] | 115 | </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> |