Browse Source

添加docker image地址

guq 6 years ago
parent
commit
6d7fa559b2
1 changed files with 1 additions and 48 deletions
  1. 1 48
      pom.xml

+ 1 - 48
pom.xml

@@ -538,58 +538,11 @@
                 </pluginManagement>
             </build>
         </profile>
-        <profile>
-            <!-- mvn deploy -P docker-prod -->
-            <id>docker-test-cloud</id>
-            <properties>
-                <docker.repository>10.10.100.200:5000</docker.repository>
-            </properties>
-            <build>
-                <pluginManagement>
-                    <plugins>
-                        <!-- Docker maven plugin -->
-                        <plugin>
-                            <groupId>com.spotify</groupId>
-                            <artifactId>docker-maven-plugin</artifactId>
-                            <version>1.0.0</version>
-                            <configuration>
-                                <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>
-                                <imageTags>
-                                    <imageTag>latest</imageTag>
-                                </imageTags>
-                                <resources>
-                                    <resource>
-                                        <targetPath>/</targetPath>
-                                        <directory>${project.build.directory}</directory>
-                                        <include>${project.build.finalName}.jar</include>
-                                    </resource>
-                                </resources>
-                            </configuration>
-                            <executions>
-                                <execution>
-                                    <id>build-image</id>
-                                    <phase>package</phase>
-                                    <goals>
-                                        <goal>build</goal>
-                                    </goals>
-                                </execution>
-                            </executions>
-                        </plugin>
-                        <!-- Docker maven plugin -->
-                    </plugins>
-                </pluginManagement>
-            </build>
-        </profile>
         <profile>
             <!-- mvn deploy -P docker-test -->
             <id>docker-cloud</id>
             <properties>
+                <docker.repository>10.10.100.200:5000</docker.repository>
                 <docker.registry.name>smartschool/cloud</docker.registry.name>
             </properties>
             <build>