sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP SDC |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. |
| 6 | ================================================================================ |
| 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 | ============LICENSE_END========================================================= |
| 19 | ================================================================================ |
| 20 | --> |
| 21 | |
| 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <parent> |
| 26 | <artifactId>catalog-be-plugins</artifactId> |
| 27 | <groupId>org.openecomp.sdc</groupId> |
ChrisC | 00acf3d | 2021-03-22 13:54:06 +0100 | [diff] [blame] | 28 | <version>1.9.0-SNAPSHOT</version> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 29 | </parent> |
| 30 | |
| 31 | <packaging>pom</packaging> |
| 32 | <modelVersion>4.0.0</modelVersion> |
| 33 | |
| 34 | <artifactId>backend-all-plugins</artifactId> |
| 35 | |
| 36 | <properties> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 37 | <docker.skip.build>true</docker.skip.build> |
| 38 | <docker.skip.push>true</docker.skip.push> |
| 39 | <docker.skip.tag>true</docker.skip.tag> |
sebdet | 0667274 | 2020-09-24 22:24:19 +0200 | [diff] [blame] | 40 | <docker.skip>true</docker.skip> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 41 | </properties> |
| 42 | |
| 43 | <profiles> |
| 44 | <profile> |
| 45 | <id>docker</id> |
| 46 | <properties> |
| 47 | <skip.staging.artifacts>true</skip.staging.artifacts> |
| 48 | <docker.skip.build>false</docker.skip.build> |
| 49 | <docker.skip.tag>false</docker.skip.tag> |
| 50 | <docker.skip.push>false</docker.skip.push> |
| 51 | <docker.skip>false</docker.skip> |
| 52 | </properties> |
| 53 | </profile> |
| 54 | </profiles> |
| 55 | <build> |
| 56 | <plugins> |
| 57 | <plugin> |
| 58 | <groupId>io.fabric8</groupId> |
| 59 | <artifactId>docker-maven-plugin</artifactId> |
| 60 | <configuration> |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 61 | <verbose>${verbose}</verbose> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 62 | <apiVersion>${docker.api.version}</apiVersion> |
| 63 | <registry>nexus3.onap.org:10001</registry> |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 64 | <verbose>${verbose}</verbose> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 65 | <authConfig> |
| 66 | <pull> |
| 67 | <username>docker</username> |
| 68 | <password>docker</password> |
| 69 | </pull> |
| 70 | </authConfig> |
| 71 | <images> |
| 72 | <!-- Build backend image --> |
| 73 | <image> |
| 74 | <name>onap/sdc-backend-all-plugins</name> |
| 75 | <alias>sdc-backend-all-plugins</alias> |
| 76 | <build> |
| 77 | <cleanup>try</cleanup> |
| 78 | <dockerFile>backend-all-plugins/Dockerfile</dockerFile> |
| 79 | <tags> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 80 | <tag>latest</tag> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 81 | <tag> |
| 82 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 83 | </tag> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 84 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 85 | </tags> |
| 86 | <assembly> |
| 87 | <descriptor>backend-all-plugins/backend-all-plugins-files.xml</descriptor> |
| 88 | <name>onap-sdc-backend-all-plugins</name> |
| 89 | </assembly> |
| 90 | </build> |
| 91 | </image> |
| 92 | </images> |
| 93 | </configuration> |
| 94 | <executions> |
| 95 | <execution> |
| 96 | <id>clean-images</id> |
| 97 | <phase>pre-clean</phase> |
| 98 | <goals> |
| 99 | <goal>remove</goal> |
| 100 | </goals> |
| 101 | </execution> |
| 102 | <execution> |
| 103 | <id>generate-images</id> |
| 104 | <phase>install</phase> |
| 105 | <goals> |
| 106 | <goal>build</goal> |
| 107 | </goals> |
| 108 | </execution> |
| 109 | <execution> |
| 110 | <id>push-images</id> |
| 111 | <phase>deploy</phase> |
| 112 | <goals> |
| 113 | <goal>push</goal> |
| 114 | </goals> |
| 115 | </execution> |
| 116 | </executions> |
| 117 | </plugin> |
| 118 | </plugins> |
| 119 | </build> |
| 120 | </project> |