版本控制
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-09-27 03:32:51 +08:00
parent f754e87136
commit 5e07bf55d7
4 changed files with 185 additions and 1 deletions

12
pom.xml
View File

@@ -170,7 +170,7 @@
<version>3.3.1</version>
<configuration>
<from>
<image>registry.docker-cn.com/openjdk:17-jdk-slim</image>
<image>openjdk:17-jdk-slim</image>
</from>
<to>
<image>light-delivery-app</image>
@@ -191,6 +191,16 @@
<!-- 添加主类配置 -->
<mainClass>com.light.delivery.LightApplication</mainClass>
</container>
<!-- 为云端CI/CD环境配置 -->
<allowInsecureRegistries>false</allowInsecureRegistries>
<sendCredentialsOverHttp>false</sendCredentialsOverHttp>
<!-- CI/CD环境优化配置 -->
<httpTimeout>60000</httpTimeout>
<retries>3</retries>
<!-- 镜像标签配置 -->
<outputPaths>
<tar>${project.build.directory}/jib-image.tar</tar>
</outputPaths>
</configuration>
</plugin>
</plugins>