pom version

master
yixian 5 years ago
parent 4c6e537b96
commit 7b487ff92e

@ -204,6 +204,25 @@
<executable>true</executable> <executable>true</executable>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<build>
<plugins>
<plugin> <plugin>
<groupId>com.google.cloud.tools</groupId> <groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId> <artifactId>jib-maven-plugin</artifactId>
@ -213,7 +232,7 @@
<image>hkccr.ccs.tencentyun.com/cross-payment/base:v1.0</image> <image>hkccr.ccs.tencentyun.com/cross-payment/base:v1.0</image>
</from> </from>
<to> <to>
<image>hkccr.ccs.tencentyun.com/cb-payment/manage:${docker-image.version}</image> <image>hkccr.ccs.tencentyun.com/cross-payment-dev/manage-dev:${docker-image.version}</image>
</to> </to>
<extraDirectory> <extraDirectory>
<path>extra/</path> <path>extra/</path>
@ -229,18 +248,40 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins>
</build>
</profile>
<profile>
<id>prod</id>
<build>
<plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>com.google.cloud.tools</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>jib-maven-plugin</artifactId>
<version>${jib-maven-plugin.version}</version>
<configuration> <configuration>
<skip>true</skip> <from>
<image>hkccr.ccs.tencentyun.com/cross-payment/base:v1.0</image>
</from>
<to>
<image>hkccr.ccs.tencentyun.com/cb-payment/manage:${docker-image.version}</image>
</to>
<extraDirectory>
<path>extra/</path>
</extraDirectory>
<allowInsecureRegistries>true</allowInsecureRegistries>
</configuration> </configuration>
</plugin> <executions>
<plugin> <execution>
<groupId>org.apache.maven.plugins</groupId> <phase>package</phase>
<artifactId>maven-surefire-plugin</artifactId> <goals>
<version>2.17</version> <goal>build</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile>
</profiles>
</project> </project>

Loading…
Cancel
Save