mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
Ram Krishna Verma | a535540 | 2020-02-05 16:10:59 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2020 Bell Canada. |
Jim Hahn | e214316 | 2021-07-19 14:55:47 -0400 | [diff] [blame] | 5 | Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved. |
liamfallon | e11bf73 | 2023-02-17 19:15:46 +0000 | [diff] [blame] | 6 | Modifications Copyright (C) 2022-2023 Nordix Foundation. |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | |
| 20 | SPDX-License-Identifier: Apache-2.0 |
| 21 | ============LICENSE_END========================================================= |
| 22 | --> |
| 23 | |
| 24 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 26 | |
| 27 | <modelVersion>4.0.0</modelVersion> |
| 28 | |
| 29 | <parent> |
| 30 | <groupId>org.onap.policy.distribution</groupId> |
Ram Krishna Verma | a535540 | 2020-02-05 16:10:59 -0500 | [diff] [blame] | 31 | <artifactId>distribution-packages</artifactId> |
liamfallon | 4293642 | 2023-05-25 09:41:26 +0100 | [diff] [blame^] | 32 | <version>3.0.0-SNAPSHOT</version> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 33 | </parent> |
| 34 | |
| 35 | <packaging>pom</packaging> |
| 36 | <artifactId>policy-distribution-docker</artifactId> |
Ram Krishna Verma | a535540 | 2020-02-05 16:10:59 -0500 | [diff] [blame] | 37 | <name>${project.artifactId}</name> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 38 | <description>Policy distribution docker image</description> |
| 39 | |
| 40 | <properties> |
| 41 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 42 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 43 | <dist.project.version>${project.version}</dist.project.version> |
| 44 | <docker.skip>false</docker.skip> |
| 45 | <docker.skip.build>false</docker.skip.build> |
mmis | 8e9afaf | 2018-09-14 16:27:45 +0100 | [diff] [blame] | 46 | <docker.skip.push>false</docker.skip.push> |
danielhanrahan | bd96c8f | 2022-09-01 15:03:20 +0100 | [diff] [blame] | 47 | <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 48 | <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format> |
| 49 | </properties> |
| 50 | |
| 51 | <build> |
| 52 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 53 | <plugins> |
| 54 | <plugin> |
Taka Cho | 7fdd0a9 | 2021-08-09 14:29:47 -0400 | [diff] [blame] | 55 | <groupId>org.codehaus.gmaven</groupId> |
| 56 | <artifactId>groovy-maven-plugin</artifactId> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 57 | <executions> |
| 58 | <execution> |
| 59 | <phase>validate</phase> |
| 60 | <goals> |
| 61 | <goal>execute</goal> |
| 62 | </goals> |
| 63 | <configuration> |
Taka Cho | 7fdd0a9 | 2021-08-09 14:29:47 -0400 | [diff] [blame] | 64 | <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 65 | </configuration> |
| 66 | </execution> |
| 67 | </executions> |
| 68 | </plugin> |
| 69 | |
| 70 | <plugin> |
danielhanrahan | 720425d | 2022-06-28 15:02:53 +0100 | [diff] [blame] | 71 | <groupId>io.github.git-commit-id</groupId> |
| 72 | <artifactId>git-commit-id-maven-plugin</artifactId> |
danielhanrahan | 720425d | 2022-06-28 15:02:53 +0100 | [diff] [blame] | 73 | </plugin> |
| 74 | |
| 75 | <plugin> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 76 | <groupId>io.fabric8</groupId> |
| 77 | <artifactId>docker-maven-plugin</artifactId> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 78 | |
| 79 | <configuration> |
| 80 | <verbose>true</verbose> |
| 81 | <apiVersion>1.23</apiVersion> |
| 82 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 83 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 84 | |
| 85 | <images> |
| 86 | <image> |
| 87 | <name>onap/policy-distribution</name> |
| 88 | <build> |
| 89 | <cleanup>try</cleanup> |
danielhanrahan | 9d74483 | 2022-06-01 14:26:24 +0100 | [diff] [blame] | 90 | <dockerFile>${dockerFile}</dockerFile> |
danielhanrahan | bd96c8f | 2022-09-01 15:03:20 +0100 | [diff] [blame] | 91 | <contextDir>${docker.contextDir}</contextDir> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 92 | <tags> |
| 93 | <tag>${project.version}</tag> |
| 94 | <tag>${project.version}-${maven.build.timestamp}</tag> |
pdragosh | b2f1e97 | 2019-06-26 13:54:26 -0400 | [diff] [blame] | 95 | <tag>${project.docker.latest.minmax.tag.version}</tag> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 96 | </tags> |
| 97 | <assembly> |
| 98 | <inline> |
| 99 | <dependencySets> |
| 100 | <dependencySet> |
| 101 | <includes> |
| 102 | <include>org.onap.policy.distribution:policy-distribution-tarball</include> |
| 103 | </includes> |
| 104 | <outputDirectory>/lib</outputDirectory> |
| 105 | <outputFileNameMapping>policy-distribution.tar.gz</outputFileNameMapping> |
| 106 | </dependencySet> |
| 107 | </dependencySets> |
| 108 | </inline> |
| 109 | </assembly> |
| 110 | </build> |
| 111 | </image> |
| 112 | </images> |
| 113 | </configuration> |
| 114 | |
| 115 | <executions> |
| 116 | <execution> |
| 117 | <id>clean-images</id> |
| 118 | <phase>pre-clean</phase> |
| 119 | <goals> |
| 120 | <goal>remove</goal> |
| 121 | </goals> |
| 122 | <configuration> |
| 123 | <removeAll>true</removeAll> |
| 124 | </configuration> |
| 125 | </execution> |
| 126 | |
| 127 | <execution> |
| 128 | <id>generate-images</id> |
| 129 | <phase>generate-sources</phase> |
| 130 | <goals> |
| 131 | <goal>build</goal> |
| 132 | </goals> |
| 133 | </execution> |
| 134 | |
| 135 | <execution> |
| 136 | <id>push-images</id> |
| 137 | <phase>deploy</phase> |
| 138 | <goals> |
| 139 | <goal>build</goal> |
| 140 | <goal>push</goal> |
| 141 | </goals> |
mmis | 461cafd | 2018-09-05 10:35:44 +0100 | [diff] [blame] | 142 | </execution> |
| 143 | </executions> |
| 144 | </plugin> |
| 145 | |
| 146 | <plugin> |
| 147 | <groupId>org.apache.maven.plugins</groupId> |
| 148 | <artifactId>maven-deploy-plugin</artifactId> |
| 149 | <configuration> |
| 150 | <skip>true</skip> |
| 151 | </configuration> |
| 152 | </plugin> |
| 153 | </plugins> |
| 154 | </build> |
| 155 | |
| 156 | <dependencies> |
| 157 | <dependency> |
| 158 | <groupId>org.onap.policy.distribution</groupId> |
| 159 | <artifactId>policy-distribution-tarball</artifactId> |
| 160 | <version>${project.version}</version> |
| 161 | <classifier>tarball</classifier> |
| 162 | <type>tar.gz</type> |
| 163 | </dependency> |
| 164 | </dependencies> |
| 165 | </project> |