Commit 7a017e4b authored by liaozan's avatar liaozan 🏀

build docker image using buildpack

parent 418dd5a6
...@@ -388,16 +388,25 @@ ...@@ -388,16 +388,25 @@
<execution> <execution>
<id>repackage</id> <id>repackage</id>
<phase>package</phase> <phase>package</phase>
<goals>
<goal>repackage</goal>
</goals>
</execution>
<execution>
<id>buildInfo</id>
<phase>deploy</phase>
<goals> <goals>
<goal>build-info</goal> <goal>build-info</goal>
<goal>repackage</goal>
<goal>build-image</goal>
</goals> </goals>
<configuration>
<imageName>${docker.repository}/${project.parent.artifactId}:${project.parent.version}</imageName>
<cleanCache>true</cleanCache>
<pullPolicy>IF_NOT_PRESENT</pullPolicy>
<publish>false</publish>
<docker>
<publishRegistry>
<username>liwu@1890587021077463</username>
<!--suppress UnresolvedMavenProperty -->
<password><![CDATA[9H7ny!QPW@!L6@n ]]> </password>
<url>registry.cn-hangzhou.aliyuncs.com</url>
</publishRegistry>
</docker>
</configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
...@@ -411,6 +420,7 @@ ...@@ -411,6 +420,7 @@
<id>dev</id> <id>dev</id>
<properties> <properties>
<spring.profile>dev</spring.profile> <spring.profile>dev</spring.profile>
<docker.repository>registry.cn-hangzhou.aliyuncs.com/schoolbrain</docker.repository>
</properties> </properties>
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
...@@ -421,6 +431,7 @@ ...@@ -421,6 +431,7 @@
<id>test</id> <id>test</id>
<properties> <properties>
<spring.profile>test</spring.profile> <spring.profile>test</spring.profile>
<docker.repository>registry.cn-hangzhou.aliyuncs.com/schoolbrain</docker.repository>
</properties> </properties>
</profile> </profile>
<!-- 预发布环境 --> <!-- 预发布环境 -->
...@@ -428,6 +439,7 @@ ...@@ -428,6 +439,7 @@
<id>pre</id> <id>pre</id>
<properties> <properties>
<spring.profile>pre</spring.profile> <spring.profile>pre</spring.profile>
<docker.repository>registry.cn-hangzhou.aliyuncs.com/schoolbrain</docker.repository>
</properties> </properties>
</profile> </profile>
<!-- 生产环境 --> <!-- 生产环境 -->
...@@ -435,6 +447,7 @@ ...@@ -435,6 +447,7 @@
<id>prod</id> <id>prod</id>
<properties> <properties>
<spring.profile>prod</spring.profile> <spring.profile>prod</spring.profile>
<docker.repository>registry-vpc.cn-hangzhou.aliyuncs.com/schbrain</docker.repository>
</properties> </properties>
</profile> </profile>
<!-- Java8 --> <!-- Java8 -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment