From a3dadb11df79a95d3606375e45f261e3098ffc1b Mon Sep 17 00:00:00 2001 From: jiseon Date: Sun, 7 Jul 2024 20:38:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20GitHub=20actions=20=EC=BA=90=EC=8B=B1=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 16dcb5c..ac8aa6b 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 @@ -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