diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 93ae952..c3f2e0e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,6 +10,9 @@ jobs: steps: - name: 安装 Docker CLI run: | + # 替换 Debian 源为清华镜像,避免国内连 deb.debian.org 超时 + sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true + sed -i 's|security.debian.org|mirrors.tuna.tsinghua.edu.cn/debian-security|g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true apt-get update -qq apt-get install -y -qq docker.io