|
|
@@ -341,6 +341,7 @@
|
|
|
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
|
|
<registryUrl>${docker.repository}</registryUrl>
|
|
|
<pushImage>true</pushImage>
|
|
|
+ <forceTags>true</forceTags>
|
|
|
<imageName>
|
|
|
${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
|
|
|
</imageName>
|
|
|
@@ -357,32 +358,12 @@
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
+ <id>build-image</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>build</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
- <execution>
|
|
|
- <id>tag-image</id>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>tag</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <image>${docker.registry.name}/${project.artifactId}:${project.version}</image>
|
|
|
- <newName>${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}</newName>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <execution>
|
|
|
- <id>push-image</id>
|
|
|
- <phase>deploy</phase>
|
|
|
- <goals>
|
|
|
- <goal>push</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <imageName>${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}</imageName>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
<!-- Docker maven plugin -->
|