更新.gitlab-ci.yml文件

This commit is contained in:
skeleton 2024-11-01 03:34:49 +00:00
parent f08fdc1309
commit d30de2a458
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ stages:
variables: variables:
ProjectPath: "mongo.games.com/game" ProjectPath: "mongo.games.com/game"
BetaBinPath: "/home/centos/" BetaBinPath: "/home/game/"
DevelopBinPath: "/home/game/" DevelopBinPath: "/home/game/"
default: default:
@ -115,8 +115,8 @@ sync_job:
# 使用 rsync 将文件同步到远程服务器 # 使用 rsync 将文件同步到远程服务器
- echo "同步到服务器" - echo "同步到服务器"
- echo "Deploying to remote server using rsync..." - 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" - "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"