From c9bf99c2a5abd05522409309640eb78e714fe666 Mon Sep 17 00:00:00 2001 From: iriver Date: Tue, 15 Jul 2025 23:33:47 +0800 Subject: [PATCH] 1 --- .gitea/workflows/deploy-backend.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-backend.yml b/.gitea/workflows/deploy-backend.yml index 5b23cf0..e48aaed 100644 --- a/.gitea/workflows/deploy-backend.yml +++ b/.gitea/workflows/deploy-backend.yml @@ -158,8 +158,11 @@ jobs: - name: 📦 同步配置文件 run: | - # 安装sshpass用于密码认证 - sudo apt-get update && sudo apt-get install -y sshpass + # 使用国内镜像源安装sshpass + echo "🔄 使用国内镜像源..." + sudo sed -i 's|http://.*.ubuntu.com|https://mirrors.aliyun.com|g' /etc/apt/sources.list + sudo apt-get update -o Acquire::Retries=3 -o Acquire::http::Timeout=30 + sudo apt-get install -y --allow-unauthenticated sshpass # 同步配置文件到服务器 echo "📋 同步配置文件到服务器..."