使用 Dockerfile 构建镜像
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 1s

This commit is contained in:
2025-09-28 03:39:49 +08:00
parent e9bbfeb2a0
commit 13ef9ed781

View File

@@ -12,12 +12,12 @@ jobs:
steps: steps:
- name: 检出代码 - name: 检出代码
uses: actions/checkout@v4 uses: http://115.190.121.151:3000/actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: 设置 JDK 17 - name: 设置 JDK 17
uses: actions/setup-java@v4 uses: http://115.190.121.151:3000/actions/setup-java@v4
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
@@ -39,7 +39,7 @@ jobs:
mvn --version mvn --version
- name: 缓存 Maven 依赖 - name: 缓存 Maven 依赖
uses: actions/cache@v3 uses: http://115.190.121.151:3000/actions/cache@v3
with: with:
path: ~/.m2/repository path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}