update run auto deploy condition

This commit is contained in:
Liujian
2024-10-21 17:06:52 +08:00
parent 7bc60c0574
commit aab47ec0c6
+4 -2
View File
@@ -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" \