From 3a2e83f03a0dadc29e3777a9f91c786da0f05aaf Mon Sep 17 00:00:00 2001 From: Martin <1403951401@qq.com> Date: Thu, 6 Feb 2025 09:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=85=E7=90=86=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clean.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/clean.sh b/clean.sh index 26ed835..cedb208 100644 --- a/clean.sh +++ b/clean.sh @@ -15,3 +15,21 @@ df -h # 查看占用磁盘 # sudo du -ah / | sort -rh | head -20 +if [ -d "/root/act_runner" ] && docker images | grep -q "docker.martin98.com/library/gitea/act_runner"; then + echo "清理 act_runner" + docker volume rm act-toolcache + cd /root/act_runner + sh run.sh +fi + +if [ -d "/root/git-proxy" ] && docker images | grep -q "docker.martin98.com/library/hunsh/gh-proxy-py:latest"; then + echo "清理 git-proxy" + cd /root/git-proxy + sh restart.sh +fi + +if [ -d "/root/registry" ] && docker images | grep -q "registry"; then + echo "清理 registry" + cd /root/registry + sh restart.sh +fi