添加Google Jib插件构建docker镜像
This commit is contained in:
@@ -50,6 +50,44 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<version>3.4.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<from>
|
||||
<image>docker.icdat.top/library/eclipse-temurin:8-jdk</image>
|
||||
</from>
|
||||
|
||||
<to>
|
||||
<image>dev.yixiong-tech.com:18081/renkang/xj-system</image>
|
||||
<tags>
|
||||
<tag>latest</tag>
|
||||
<tag>${git.commit.id.abbrev}</tag>
|
||||
</tags>
|
||||
<auth>
|
||||
<username>admin</username>
|
||||
<password>Aa135790!123</password>
|
||||
</auth>
|
||||
</to>
|
||||
<allowInsecureRegistries>true</allowInsecureRegistries>
|
||||
<container>
|
||||
<mainClass>org.jeecg.JeecgSystemCloudApplication</mainClass>
|
||||
<ports>
|
||||
<port>7001</port>
|
||||
</ports>
|
||||
</container>
|
||||
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
Reference in New Issue
Block a user