blob: 17b57192cdaed1c6df786213c8ddcb6c9dce87da [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.
danielhanrahan9d744832022-06-01 14:26:24 +01006 Modifications Copyright (C) 2022 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>
57 <version>2.1.1</version>
mmis461cafd2018-09-05 10:35:44 +010058 <executions>
59 <execution>
60 <phase>validate</phase>
61 <goals>
62 <goal>execute</goal>
63 </goals>
64 <configuration>
Taka Cho7fdd0a92021-08-09 14:29:47 -040065 <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
mmis461cafd2018-09-05 10:35:44 +010066 </configuration>
67 </execution>
68 </executions>
69 </plugin>
70
71 <plugin>
danielhanrahan720425d2022-06-28 15:02:53 +010072 <groupId>io.github.git-commit-id</groupId>
73 <artifactId>git-commit-id-maven-plugin</artifactId>
danielhanrahan720425d2022-06-28 15:02:53 +010074 </plugin>
75
76 <plugin>
mmis461cafd2018-09-05 10:35:44 +010077 <groupId>io.fabric8</groupId>
78 <artifactId>docker-maven-plugin</artifactId>
mmis461cafd2018-09-05 10:35:44 +010079
80 <configuration>
81 <verbose>true</verbose>
82 <apiVersion>1.23</apiVersion>
83 <pullRegistry>${docker.pull.registry}</pullRegistry>
84 <pushRegistry>${docker.push.registry}</pushRegistry>
85
86 <images>
87 <image>
88 <name>onap/policy-distribution</name>
89 <build>
90 <cleanup>try</cleanup>
danielhanrahan9d744832022-06-01 14:26:24 +010091 <dockerFile>${dockerFile}</dockerFile>
danielhanrahanbd96c8f2022-09-01 15:03:20 +010092 <contextDir>${docker.contextDir}</contextDir>
mmis461cafd2018-09-05 10:35:44 +010093 <tags>
94 <tag>${project.version}</tag>
95 <tag>${project.version}-${maven.build.timestamp}</tag>
pdragoshb2f1e972019-06-26 13:54:26 -040096 <tag>${project.docker.latest.minmax.tag.version}</tag>
mmis461cafd2018-09-05 10:35:44 +010097 </tags>
98 <assembly>
99 <inline>
100 <dependencySets>
101 <dependencySet>
102 <includes>
103 <include>org.onap.policy.distribution:policy-distribution-tarball</include>
104 </includes>
105 <outputDirectory>/lib</outputDirectory>
106 <outputFileNameMapping>policy-distribution.tar.gz</outputFileNameMapping>
107 </dependencySet>
108 </dependencySets>
109 </inline>
110 </assembly>
111 </build>
112 </image>
113 </images>
114 </configuration>
115
116 <executions>
117 <execution>
118 <id>clean-images</id>
119 <phase>pre-clean</phase>
120 <goals>
121 <goal>remove</goal>
122 </goals>
123 <configuration>
124 <removeAll>true</removeAll>
125 </configuration>
126 </execution>
127
128 <execution>
129 <id>generate-images</id>
130 <phase>generate-sources</phase>
131 <goals>
132 <goal>build</goal>
133 </goals>
134 </execution>
135
136 <execution>
137 <id>push-images</id>
138 <phase>deploy</phase>
139 <goals>
140 <goal>build</goal>
141 <goal>push</goal>
142 </goals>
143 <configuration>
144 <image>onap/policy-distribution</image>
145 </configuration>
146 </execution>
147 </executions>
148 </plugin>
149
150 <plugin>
151 <groupId>org.apache.maven.plugins</groupId>
152 <artifactId>maven-deploy-plugin</artifactId>
153 <configuration>
154 <skip>true</skip>
155 </configuration>
156 </plugin>
157 </plugins>
158 </build>
159
160 <dependencies>
161 <dependency>
162 <groupId>org.onap.policy.distribution</groupId>
163 <artifactId>policy-distribution-tarball</artifactId>
164 <version>${project.version}</version>
165 <classifier>tarball</classifier>
166 <type>tar.gz</type>
167 </dependency>
168 </dependencies>
169</project>