本地jdk和Maven
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 13s

This commit is contained in:
2025-09-28 01:16:44 +08:00
parent cdb5a0a21b
commit ab0fd8b397
3 changed files with 32 additions and 7 deletions

View File

@@ -41,6 +41,19 @@ jobs:
docker pull openjdk:17-jdk-slim
docker images
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.docker-cache
key: ${{ runner.os }}-docker-cache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-docker-cache-
- name: Verify Docker environment
run: |
docker version
docker info
- name: Login to Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
@@ -63,7 +76,7 @@ jobs:
run: |
mvn jib:dockerBuild \
-Djib.to.image=light-delivery-app:${{ github.sha }} \
-Djib.allowInsecureRegistries=true \
-Djib.allowInsecureRegistries=false \
-Djib.httpTimeout=60000 \
-Djib.sendCredentialsOverHttp=false \
-Djib.pullParentImage=false \
@@ -76,7 +89,7 @@ jobs:
run: |
mvn jib:buildTar \
-Djib.to.image=light-delivery-app:${{ github.sha }} \
-Djib.allowInsecureRegistries=true \
-Djib.allowInsecureRegistries=false \
-Djib.httpTimeout=60000 \
-Djib.sendCredentialsOverHttp=false \
-Djib.pullParentImage=false