Skip to content

Commit

Permalink
Merge pull request #32 from Chagok-Integrated-for-DevProject/main
Browse files Browse the repository at this point in the history
새로 배포시 redis 비초기화
  • Loading branch information
starwook authored Oct 31, 2023
2 parents 04841f5 + 97daed8 commit 4c33317
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ jobs:
script: |
docker pull ${{ secrets.DOCKER_USERNAME }}/chagok:latest
docker tag ${{ secrets.DOCKER_USERNAME }}/chagok:latest chagok:latest
docker stop $(docker ps -a -q)
# docker stop $(docker ps -a -q)
docker stop chagok:latest
docker run -d --rm -p 8080:8080 --net redis-network --memory 1024m chagok:latest
docker run -d --rm -p 6379:6379 --net redis-network --memory 256m redis:latest
# docker run -d --rm -p 6379:6379 --net redis-network --memory 256m redis:latest
docker rm $(docker ps --filter 'status=exited' -a -q)
# 실행 중이지 않으 모든 컨테인 삭제
docker image prune -a -f
# 사용하지않은 모든 이미지 삭제
# 사용하지않은 모든 이미지 삭제

0 comments on commit 4c33317

Please sign in to comment.