Changes to add dockerfile-maven-plugin
<properties>
<jib.version>1.8.0</jib.version>
<base.image>openjdk:8u222-slim</base.image>
+ <docker.registry.organization>springcloud</docker.registry.organization>
+ <plexus-archiver.version>4.1.0</plexus-archiver.version>
</properties>
<dependencies>
</build>
<profiles>
+ <profile>
+ <id>dockerpush</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.spotify</groupId>
+ <artifactId>dockerfile-maven-plugin</artifactId>
+ <version>1.4.12</version>
+ <configuration>
+ <repository>${docker.registry.organization}/${artifactId}</repository>
+ <tag>${project.version}</tag>
+ <username>${env.DOCKER_HUB_USERNAME}</username>
+ <password>${env.DOCKER_HUB_PASSWORD}</password>
+ <build>
+ <noCache>true</noCache>
+ </build>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-archiver</artifactId>
+ <version>${plexus-archiver.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>imagename</id>
<activation>
-<!-- <activeByDefault>true</activeByDefault>-->
<property>
<name>!env.IMAGE</name>
</property>
