非远程读取
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 43s

This commit is contained in:
2025-09-28 02:45:17 +08:00
parent 11281be403
commit aac802469e

20
pom.xml
View File

@@ -191,29 +191,21 @@
<!-- 添加主类配置 -->
<mainClass>com.light.delivery.LightApplication</mainClass>
</container>
<!-- 为云端CI/CD环境配置 -->
<allowInsecureRegistries>false</allowInsecureRegistries>
<sendCredentialsOverHttp>false</sendCredentialsOverHttp>
<!-- CI/CD环境优化配置 -->
<httpTimeout>60000</httpTimeout>
<retries>3</retries>
<!-- 使用本地已有的基础镜像 -->
<pullParentImage>false</pullParentImage>
<!-- 离线模式配置,确保使用本地已有镜像 -->
<offline>true</offline>
<!-- 不验证远程仓库 -->
<allowInsecureRegistries>true</allowInsecureRegistries>
<!-- 不拉取父镜像 -->
<pullParent>false</pullParent>
<!-- 镜像标签配置 -->
<outputPaths>
<tar>${project.build.directory}/jib-image.tar</tar>
</outputPaths>
<!-- 优化CI/CD构建 -->
<containerizingMode>packaged</containerizingMode>
<!-- 配置不安全的镜像仓库 -->
<insecureRegistries>
<insecureRegistry>localhost:5000</insecureRegistry>
</insecureRegistries>
<!-- 其他优化配置 -->
<skip>false</skip>
<useOnlyProjectProperties>true</useOnlyProjectProperties>
<!-- 启用离线模式 -->
<offline>true</offline>
</configuration>
</plugin>
</plugins>