Skip to content

Commit

Permalink
Merge pull request #48 from softeerbootcamp4th/feature/#39-jwt-impl
Browse files Browse the repository at this point in the history
chore: 배포할 때마다 Docker 이미지 정리 코드 추가
  • Loading branch information
k000927 authored Aug 6, 2024
2 parents 17fc2af + 0db2d73 commit 0de5fef
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,14 @@ jobs:
key: ${{ secrets.EC2_SECRET }}
script: |
cd /home/ubuntu/spring-boot
# Docker 이미지 삭제
docker image prune -af
# 디스크 공간 정리
sudo apt-get clean
sudo rm -rf /var/lib/docker/tmp/*
# 새로운 이미지 풀 및 배포
docker-compose pull
docker-compose up -d
docker-compose up -d

0 comments on commit 0de5fef

Please sign in to comment.