RM-6377 Modified poms to have custom releases for enterprise and community

This commit is contained in:
Elena Hardon
2018-07-05 16:43:31 +03:00
parent c738bd1d92
commit c0d1531712
2 changed files with 71 additions and 6 deletions

52
pom.xml
View File

@@ -343,10 +343,10 @@
</build>
</profile>
<!-- Profile used to build and push docker images with project.version tag to the given image registry (quay.io) and
hub.docker -->
<!-- Profile used to build and push docker images with project.version tag to hub.docker when the community deploy goal encounters-->
<profile>
<id>release</id>
<id>release-enterprise</id>
<build>
<pluginManagement>
<plugins>
@@ -380,6 +380,52 @@
</pluginManagement>
</build>
</profile>
<!-- Profile used to build and push docker images with project.version tag to both image registries quay.io and hub.docker when
the enterprise deploy goal encounters-->
<profile>
<id>release-community</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${fabric8.maven.version}</version>
<configuration>
<images>
<image>
<name>${image.name}:${project.version}</name>
<registry>${image.registry}</registry>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
</image>
<images>
<image>
<name>${image.name}:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
</image>
</images>
</images>
</configuration>
<executions>
<execution>
<id>build-push-image</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<properties>

View File

@@ -697,9 +697,9 @@
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<profile>
<id>release-community</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
@@ -708,12 +708,31 @@
<images>
<image>
<name>${image.name}:${project.version}</name>
<registry>${image.registry}</registry>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
</image>
<images>
<image>
<name>${image.name}:${project.version}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
</build>
</image>
</images>
</images>
</configuration>
<executions>
<execution>
<id>build-push-image</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>