From 65a8c53176ec5de3bb12af6c7a0faf578d3121e3 Mon Sep 17 00:00:00 2001 From: lichao <2483469113@qq.com> Date: Tue, 24 Feb 2026 20:23:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20CI/CD=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=EF=BC=8C=E8=87=AA=E5=8A=A8=E6=8B=89=E5=8F=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=B9=B6=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改部署路径为 /root/self_proj - 添加自动 git pull 步骤 - 简化部署流程 Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/deploy.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 4c8e18b..7561171 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -72,23 +72,10 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} port: ${{ secrets.SERVER_PORT || 22 }} script: | - cd /path/to/self_proj - - # 备份数据库 - bash deploy.sh backup - - # 拉取最新代码 - cd oauth_nest_demo - git pull - cd .. - - # 重新构建并启动后端 + cd /root/self_proj/oauth_nest_demo + git pull origin main + cd /root/self_proj docker-compose up -d --build backend - - # 等待服务启动 - sleep 15 - - # 检查服务状态 docker-compose ps - name: 健康检查