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