使用 Dockerfile 构建镜像
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 1s
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 1s
This commit is contained in:
@@ -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') }}
|
||||||
|
Reference in New Issue
Block a user