blob: d8b15eb97c1dfa38310c2583af1f707f43f50ff9 [file] [log] [blame]
mmis461cafd2018-09-05 10:35:44 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
Ram Krishna Vermaa5355402020-02-05 16:10:59 -05004 Modifications Copyright (C) 2020 Bell Canada.
Jim Hahne2143162021-07-19 14:55:47 -04005 Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
liamfallone11bf732023-02-17 19:15:46 +00006 Modifications Copyright (C) 2022-2023 Nordix Foundation.
mmis461cafd2018-09-05 10:35:44 +01007 ================================================================================
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 Vermaa5355402020-02-05 16:10:59 -050031 <artifactId>distribution-packages</artifactId>
liamfallonac711612022-12-15 16:19:51 +000032 <version>2.9.1-SNAPSHOT</version>
mmis461cafd2018-09-05 10:35:44 +010033 </parent>
34
35 <packaging>pom</packaging>
36 <artifactId>policy-distribution-docker</artifactId>
Ram Krishna Vermaa5355402020-02-05 16:10:59 -050037 <name>${project.artifactId}</name>
mmis461cafd2018-09-05 10:35:44 +010038 <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>
mmis8e9afaf2018-09-14 16:27:45 +010046 <docker.skip.push>false</docker.skip.push>
danielhanrahanbd96c8f2022-09-01 15:03:20 +010047 <docker.contextDir>${project.basedir}/src/main/docker</docker.contextDir>
mmis461cafd2018-09-05 10:35:44 +010048 <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 Cho7fdd0a92021-08-09 14:29:47 -040055 <groupId>org.codehaus.gmaven</groupId>
56 <artifactId>groovy-maven-plugin</artifactId>
mmis461cafd2018-09-05 10:35:44 +010057 <executions>
58 <execution>
59 <phase>validate</phase>
60 <goals>
61 <goal>execute</goal>
62 </goals>
63 <configuration>
Taka Cho7fdd0a92021-08-09 14:29:47 -040064 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
mmis461cafd2018-09-05 10:35:44 +010065 </configuration>
66 </execution>
67 </executions>
68 </plugin>
69
70 <plugin>
danielhanrahan720425d2022-06-28 15:02:53 +010071 <groupId>io.github.git-commit-id</groupId>
72 <artifactId>git-commit-id-maven-plugin</artifactId>
danielhanrahan720425d2022-06-28 15:02:53 +010073 </plugin>
74
75 <plugin>
mmis461cafd2018-09-05 10:35:44 +010076 <groupId>io.fabric8</groupId>
77 <artifactId>docker-maven-plugin</artifactId>
mmis461cafd2018-09-05 10:35:44 +010078
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>
danielhanrahan9d744832022-06-01 14:26:24 +010090 <dockerFile>${dockerFile}</dockerFile>
danielhanrahanbd96c8f2022-09-01 15:03:20 +010091 <contextDir>${docker.contextDir}</contextDir>
mmis461cafd2018-09-05 10:35:44 +010092 <tags>
93 <tag>${project.version}</tag>
94 <tag>${project.version}-${maven.build.timestamp}</tag>
pdragoshb2f1e972019-06-26 13:54:26 -040095 <tag>${project.docker.latest.minmax.tag.version}</tag>
mmis461cafd2018-09-05 10:35:44 +010096 </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>
mmis461cafd2018-09-05 10:35:44 +0100142 </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>