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

This commit is contained in:
2025-09-28 03:45:41 +08:00
parent 836f96d226
commit 4900c3b55e

View File

@@ -12,12 +12,12 @@ jobs:
steps:
- name: 检出代码
uses: http://115.190.121.151:3000/actions/checkout@v4
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 设置 JDK 17
uses: http://115.190.121.151:3000/actions/setup-java@v4
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
@@ -39,7 +39,7 @@ jobs:
mvn --version
- name: 缓存 Maven 依赖
uses: http://115.190.121.151:3000/actions/cache@v3
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -53,8 +53,6 @@ jobs:
- name: 运行测试
run: mvn test
- name: 构建 Docker 镜像
run: |
# 使用 Dockerfile 构建镜像