From 0945d42d0a46e2aacf401bea734db796bc297722 Mon Sep 17 00:00:00 2001 From: augushong Date: Fri, 24 Apr 2026 22:06:29 +0800 Subject: [PATCH] =?UTF-8?q?ci(=E9=83=A8=E7=BD=B2):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=83=A8=E7=BD=B2=E6=AD=A5=E9=AA=A4=E7=9A=84=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E5=92=8C=E5=91=BD=E4=BB=A4=E8=B6=85=E6=97=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 设置 SSH 连接超时为 120 秒,远程命令执行超时为 60 分钟,以防止长时间运行的部署任务因默认超时而过早失败。 --- .gitea/workflows/build-and-deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index bf11012..cb709c7 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -110,6 +110,8 @@ jobs: username: ${{ secrets.UL_HOST15_USER }} password: ${{ secrets.UL_HOST15_PASSWORD }} port: ${{ secrets.UL_HOST15_PORT }} + timeout: 120s + command_timeout: 60m envs: REMOTE_APP_DIR,PACKAGE_NAME,COMPOSE_PROJECT_NAME,GITHUB_RUN_ID script: | set -euo pipefail