添加Google Jib插件构建docker镜像
This commit is contained in:
@@ -50,6 +50,44 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|||||||
@@ -684,7 +684,10 @@
|
|||||||
</nonFilteredFileExtensions>
|
</nonFilteredFileExtensions>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>pl.project13.maven</groupId>
|
||||||
|
<artifactId>git-commit-id-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
|
|||||||
Reference in New Issue
Block a user