更新.gitlab-ci.yml文件
This commit is contained in:
parent
8df77a8f9c
commit
aa046ec0e2
|
@ -111,6 +111,14 @@ sync_job:
|
|||
- echo "同步到服务器"
|
||||
- echo "Deploying to remote server using rsync..."
|
||||
- rsync -avz --delete ./temp/ $REMOTE_USER@$REMOTE_HOST:$REMOTE_DEPLOY_PATH
|
||||
|
||||
# 触发部署
|
||||
- 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
|
||||
|
||||
# 解锁作业,释放锁定
|
||||
unlock_job:
|
||||
|
|
Loading…
Reference in New Issue