update
This commit is contained in:
42
.cnb.yml
42
.cnb.yml
@@ -1,6 +1,7 @@
|
||||
# .cnb.yml
|
||||
include:
|
||||
- https://cnb.cool/kevisual/cnb/-/blob/main/.cnb/template.yml
|
||||
|
||||
.common_env: &common_env
|
||||
env:
|
||||
TO_REPO: kevisual/cnb
|
||||
@@ -18,35 +19,24 @@ $:
|
||||
# - name: pnpm install
|
||||
# script: pnpm install
|
||||
|
||||
.common_sync_to_gitea: &common_sync_to_gitea
|
||||
- <<: *common_env
|
||||
services: !reference [.common_sync_to_gitea_template, services]
|
||||
imports: !reference [.common_sync_to_gitea_template, imports]
|
||||
stages: !reference [.common_sync_to_gitea_template, stages]
|
||||
|
||||
.common_sync_from_gitea: &common_sync_from_gitea
|
||||
- <<: *common_env
|
||||
services: !reference [.common_sync_from_gitea_template, services]
|
||||
imports: !reference [.common_sync_from_gitea_template, imports]
|
||||
stages: !reference [.common_sync_from_gitea_template, stages]
|
||||
|
||||
main:
|
||||
web_trigger_sync_to_gitea:
|
||||
env: !reference [.common_env, env]
|
||||
services: !reference [.common_sync_to_gitea, services]
|
||||
imports: !reference [.common_sync_to_gitea, imports]
|
||||
stages: !reference [.common_sync_to_gitea, stages]
|
||||
|
||||
- <<: *common_sync_to_gitea
|
||||
web_trigger_sync_from_gitea:
|
||||
- <<: *common_env
|
||||
stages:
|
||||
- name: "测试变量"
|
||||
script: |
|
||||
echo "TO_REPO: ${TO_REPO}"
|
||||
echo "TO_URL: ${TO_URL}"
|
||||
echo '从gitea同步'
|
||||
- <<: *common_sync_from_gitea
|
||||
api_trigger_sync_to_gitea:
|
||||
- <<: *common_env
|
||||
stages:
|
||||
- name: "测试变量"
|
||||
script: |
|
||||
echo "TO_REPO: ${TO_REPO}"
|
||||
echo "TO_URL: ${TO_URL}"
|
||||
echo '同步到gitea'
|
||||
- <<: *common_sync_to_gitea
|
||||
api_trigger_sync_from_gitea:
|
||||
- <<: *common_env
|
||||
stages:
|
||||
- name: "测试变量"
|
||||
script: |
|
||||
echo "TO_REPO: ${TO_REPO}"
|
||||
echo "TO_URL: ${TO_URL}"
|
||||
echo '同步到gitea'
|
||||
- <<: *common_sync_from_gitea
|
||||
Reference in New Issue
Block a user