更新清理脚本
Some checks failed
Build Docker Image / Explore-Gitea-Actions (push) Failing after 15m51s

This commit is contained in:
Martin 2025-02-06 09:50:28 +08:00
parent c862c17133
commit 3a2e83f03a

View File

@ -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