Skip to content

Commit

Permalink
feat: remove mysql data #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Nov 21, 2023
1 parent b3db43c commit e5e6d53
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

# - name: Cache Gradle packages
# uses: actions/cache@v3
# with:
# path: ~/.gradle/caches
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '*.gradle') }}
# restore-keys: ${{ runner.os }}-gradle
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

# 빌드, ktlint check도 진행됨
- name: Gradle Clean & Build
Expand All @@ -56,3 +56,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: docker stop and remove mysqldata
run: |
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi $(sudo docker images -q)
rm -rf mysqldata

0 comments on commit e5e6d53

Please sign in to comment.