From 7d05aefe37f72bb5836bef5e9087fb9b5b0a898b Mon Sep 17 00:00:00 2001 From: skeleton Date: Wed, 16 Oct 2024 07:18: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 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b47acf..793fd5e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -117,12 +117,13 @@ sync_job: - 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 + - | + 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: