Browse Source

修改profile

yingp 7 years ago
parent
commit
d7f9f49713
1 changed files with 2 additions and 21 deletions
  1. 2 21
      pom.xml

+ 2 - 21
pom.xml

@@ -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 -->