From 9f35e077f0fc736772fe3bc64f45e93b058ac30a Mon Sep 17 00:00:00 2001 From: skeleton Date: Fri, 1 Nov 2024 03:27:16 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitlab-ci.yml=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f0c015..f7413dd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ stages: variables: ProjectPath: "mongo.games.com/game" - BetaBinPath: "/home/centos/deploy/" + BetaBinPath: "/home/game/" DevelopBinPath: "/home/game/" default: @@ -116,7 +116,7 @@ sync_job: # 使用 rsync 将文件同步到远程服务器 - echo "同步到服务器" - echo "Deploying to remote server using rsync... $BinPath" - - rsync -avz --delete ./temp/ $REMOTE_USER@$REMOTE_HOST:$BinPath + - rsync -rvz --delete ./temp/ $REMOTE_USER@$REMOTE_HOST:$BinPath # 触发部署 - "curl -X POST --fail -F token=$SERVER_CI_TOKEN -F ref=release -F variables[ServerName]=$ServerName https://git.pogorockgames.com/api/v4/projects/31/trigger/pipeline"