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> |
Joanna Jeremicz | 1affa57 | 2020-11-30 11:35:07 +0100 | [diff] [blame] | 28 | <version>1.8.1-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> |
| 61 | <apiVersion>${docker.api.version}</apiVersion> |
| 62 | <registry>nexus3.onap.org:10001</registry> |
| 63 | <verbose>true</verbose> |
| 64 | <authConfig> |
| 65 | <pull> |
| 66 | <username>docker</username> |
| 67 | <password>docker</password> |
| 68 | </pull> |
| 69 | </authConfig> |
| 70 | <images> |
| 71 | <!-- Build backend image --> |
| 72 | <image> |
| 73 | <name>onap/sdc-backend-all-plugins</name> |
| 74 | <alias>sdc-backend-all-plugins</alias> |
| 75 | <build> |
| 76 | <cleanup>try</cleanup> |
| 77 | <dockerFile>backend-all-plugins/Dockerfile</dockerFile> |
| 78 | <tags> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 79 | <tag>latest</tag> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 80 | <tag> |
| 81 | ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest |
| 82 | </tag> |
sebdet | b988cb6 | 2020-09-25 15:48:10 +0200 | [diff] [blame] | 83 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag> |
sebdet | 591810d | 2020-09-17 15:07:23 +0200 | [diff] [blame] | 84 | </tags> |
| 85 | <assembly> |
| 86 | <descriptor>backend-all-plugins/backend-all-plugins-files.xml</descriptor> |
| 87 | <name>onap-sdc-backend-all-plugins</name> |
| 88 | </assembly> |
| 89 | </build> |
| 90 | </image> |
| 91 | </images> |
| 92 | </configuration> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>clean-images</id> |
| 96 | <phase>pre-clean</phase> |
| 97 | <goals> |
| 98 | <goal>remove</goal> |
| 99 | </goals> |
| 100 | </execution> |
| 101 | <execution> |
| 102 | <id>generate-images</id> |
| 103 | <phase>install</phase> |
| 104 | <goals> |
| 105 | <goal>build</goal> |
| 106 | </goals> |
| 107 | </execution> |
| 108 | <execution> |
| 109 | <id>push-images</id> |
| 110 | <phase>deploy</phase> |
| 111 | <goals> |
| 112 | <goal>push</goal> |
| 113 | </goals> |
| 114 | </execution> |
| 115 | </executions> |
| 116 | </plugin> |
| 117 | </plugins> |
| 118 | </build> |
| 119 | </project> |