This commit is contained in:
parent
c862c17133
commit
3a2e83f03a
18
clean.sh
18
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user