REPO-3264 add pushImages profile for bamboo build stage

This commit is contained in:
Alexandru-Eusebiu Epure 2018-03-14 16:00:56 +02:00
parent 0cd0a6309d
commit 1c99882209
3 changed files with 111 additions and 0 deletions

View File

@ -125,6 +125,43 @@
<goals>
<goal>build</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>pushImages</id> <!-- used only in bamboo for building and pushing snapshots -->
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<configuration>
<images>
<image>
<name>alfresco/${artifactId}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
<tags>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>buildImage</id>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>

View File

@ -125,6 +125,43 @@
<goals>
<goal>build</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>pushImages</id> <!-- used only in bamboo for building and pushing snapshots -->
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<configuration>
<images>
<image>
<name>alfresco/${artifactId}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
<tags>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>buildImage</id>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>

View File

@ -135,6 +135,43 @@
<goals>
<goal>build</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>pushImages</id> <!-- used only in bamboo for building and pushing snapshots -->
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${dependency.fabric8.version}</version>
<configuration>
<images>
<image>
<name>alfresco/${artifactId}</name>
<build>
<dockerFileDir>${project.basedir}/</dockerFileDir>
<tags>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>buildImage</id>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>