Skip to content

Commit

Permalink
fix: GitHub actions 캐싱 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kikingki committed Jul 7, 2024
1 parent 283a0a5 commit a3dadb1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
steps:
- uses: actions/checkout@v3

# 캐싱 적용
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# JDK 17 설정
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -29,12 +40,9 @@ jobs:
distribution: 'temurin'
cache: gradle

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

# Docker Hub 로그인
- name: Login to Docker Hub
Expand Down

0 comments on commit a3dadb1

Please sign in to comment.