mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
update run auto deploy condition
This commit is contained in:
+4
-2
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user