From 0db2d7308c37fbccc2b8498c84b6a72a00bd2de7 Mon Sep 17 00:00:00 2001 From: wjddn2165 Date: Mon, 5 Aug 2024 17:54:48 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B0=B0=ED=8F=AC=ED=95=A0=20?= =?UTF-8?q?=EB=95=8C=EB=A7=88=EB=8B=A4=20Docker=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=A0=95=EB=A6=AC=20=EC=BD=94=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 894c01c4..921daf48 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file