From aa046ec0e2207027a65f11d32b876b49ef841f2f Mon Sep 17 00:00:00 2001 From: skeleton Date: Wed, 16 Oct 2024 07:02:38 +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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49f971b..671b233 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: