Skip to content

Commit

Permalink
[hotfix] Workflow 라이브러리 캐싱 스텝 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
baekjaehyuk committed Jan 16, 2025
1 parent d9a7901 commit 69c8fa6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
- name: set up application.properties
run: echo "${{ secrets.APPLICATION }}" > src/main/resources/application.properties

- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
Expand Down Expand Up @@ -57,8 +65,8 @@ jobs:
run: |
CONTAINER_IDS=$(sudo docker ps -aq --filter "name=github-actions-demo")
if [ -n "$CONTAINER_IDS" ]; then
sudo docker stop $CONTAINER_IDS
sudo docker rm $CONTAINER_IDS
sudo docker stop $CONTAINER_IDS || true
sudo docker rm -f $CONTAINER_IDS || true
fi
- name: Run new container
Expand Down

0 comments on commit 69c8fa6

Please sign in to comment.