From aab47ec0c6672fe3e213b9c41db883827acafd6f Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Mon, 21 Oct 2024 17:06:52 +0800 Subject: [PATCH] update run auto deploy condition --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 358bdbe4..9b2d0afe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,8 @@ builder: deployer: stage: deploy + rules: + - if: $CI_COMMIT_BRANCH =~ "main" variables: APIPARK_GUEST_MODE: allow APIPARK_GUEST_ID: dklejrfbhjqwdh @@ -69,7 +71,7 @@ deployer: success: stage: webhook rules: - - if: $CI_COMMIT_BRANCH =~ "main" + - if: $CI_COMMIT_BRANCH =~ "main" script: - | curl -X POST -H "Content-Type: application/json" \ @@ -79,7 +81,7 @@ success: failure: stage: webhook rules: - - if: $CI_COMMIT_BRANCH =~ "main" + - if: $CI_COMMIT_BRANCH =~ "main" script: - | curl -X POST -H "Content-Type: application/json" \