Skip to content

Commit

Permalink
fix: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
david-parkk committed Sep 7, 2024
1 parent b711ca1 commit 2aa8e8a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ jobs:
java-version: '17'
distribution: 'temurin'

# Setup Redis
- name: Setup Redis
uses: shogo82148/[email protected]
with:
redis-version: 6.2.0
redis-port: 6379
auto-start: true

# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Grant execute permission for gradlew
Expand All @@ -65,6 +57,7 @@ jobs:
env:
SPRING_R2DBC_URL: r2dbc:pool:mysql://localhost:3306/testdb
SPRING_R2DBC_PASSWORD: testdb
MONGO_URL: ${{ secrets.MONGO_URL }}
run: ./gradlew build

# dockerfile을 통해 이미지를 빌드하고, 이를 docker repo로 push
Expand Down Expand Up @@ -94,7 +87,7 @@ jobs:
cd ${{secrets.PROJECT_PATH}}
sudo docker-compose stop
sudo docker rm $(docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi ${{ secrets.DOCKER_REPO }}
sudo docker pull ${{ secrets.DOCKER_REPO }}
Expand Down

0 comments on commit 2aa8e8a

Please sign in to comment.