1
Some checks failed
构建并部署 / build-and-deploy (push) Failing after 2m15s

This commit is contained in:
jeremygan2021
2026-02-13 10:44:12 +08:00
parent 046e3ecd4f
commit 66a5d37004
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- name: 检出代码
uses: actions/checkout@v3
# 1. 登录 Docker Registry (已跳过,无密码模式)
# 1. 登录 Docker Registry (已跳过,无密码模式)1
# - name: 登录到私有 Registry
# uses: docker/login-action@v2
# with:

View File

@@ -78,7 +78,7 @@ print_info "无用文件清理完成"
# 部署到服务器
print_info "开始部署到服务器 $SERVER_IP:$SERVER_PATH ..."
# 使用rsync同步文件到服务器-avz表示归档、详细输出、压缩传输
# --delete表示删除目标目录中源目录没有的文件实现完全同步
# --delete表示删除目标目录中源目录没有的文件实现完全同步wcxc
# 使用sshpass提供密码认证
rsync -avz --delete -e "sshpass -p '$SERVER_PASSWORD' ssh -o StrictHostKeyChecking=no" $BUILD_DIR/ root@$SERVER_IP:$SERVER_PATH/
check_result "部署失败"