Skip to content

Commit a3dadb1

Browse files
committed
fix: GitHub actions 캐싱 오류 수정
1 parent 283a0a5 commit a3dadb1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/cicd.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323

24+
# 캐싱 적용
25+
- name: Cache Gradle
26+
uses: actions/cache@v3
27+
with:
28+
path: |
29+
~/.gradle/caches
30+
~/.gradle/wrapper
31+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
32+
restore-keys: |
33+
${{ runner.os }}-gradle-
34+
2435
# JDK 17 설정
2536
- name: Set up JDK 17
2637
uses: actions/setup-java@v3
@@ -29,12 +40,9 @@ jobs:
2940
distribution: 'temurin'
3041
cache: gradle
3142

32-
# Gradle 설정 (캐싱 적용)
43+
# Gradle 설정
3344
- name: Setup Gradle
3445
uses: gradle/gradle-build-action@v2
35-
with:
36-
arguments: build
37-
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
3846

3947
# Docker Hub 로그인
4048
- name: Login to Docker Hub

0 commit comments

Comments
 (0)