添加Google Jib插件构建docker镜像

This commit is contained in:
SkyJourney
2025-11-26 17:21:52 +08:00
parent 551eaf50fb
commit 3d5f72a26b
2 changed files with 42 additions and 1 deletions
+38
View File
@@ -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>
+4 -1
View File
@@ -684,7 +684,10 @@
</nonFilteredFileExtensions>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>