Compare commits
4 Commits
5691053f01
...
eab631c60b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eab631c60b | ||
|
|
4d119bdf56 | ||
|
|
64f24910cb | ||
|
|
4285a4760f |
50
.cnb.yml
50
.cnb.yml
@@ -1,10 +1,14 @@
|
|||||||
# .cnb.yml
|
# .cnb.yml
|
||||||
include:
|
include:
|
||||||
- https://cnb.cool/kevisual/cnb/-/blob/main/.cnb/template.yml
|
- https://cnb.cool/kevisual/cnb/-/blob/main/.cnb/template.yml
|
||||||
- config:
|
|
||||||
|
.common_env: &common_env
|
||||||
env:
|
env:
|
||||||
TO_REPO: kevisual/cnb
|
TO_REPO: kevisual/cnb
|
||||||
TO_URL: git.xiongxiao.me
|
TO_URL: git.xiongxiao.me
|
||||||
|
imports:
|
||||||
|
- https://cnb.cool/kevisual/env/-/blob/main/.env.development
|
||||||
|
|
||||||
$:
|
$:
|
||||||
vscode:
|
vscode:
|
||||||
- docker:
|
- docker:
|
||||||
@@ -18,38 +22,22 @@ $:
|
|||||||
# - name: pnpm install
|
# - name: pnpm install
|
||||||
# script: pnpm install
|
# script: pnpm install
|
||||||
|
|
||||||
.common_env: &common_env
|
.common_sync_to_gitea: &common_sync_to_gitea
|
||||||
env:
|
- <<: *common_env
|
||||||
TO_REPO: kevisual/cnb
|
services: !reference [.common_sync_to_gitea_template, services]
|
||||||
TO_URL: git.xiongxiao.me
|
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]
|
||||||
|
stages: !reference [.common_sync_from_gitea_template, stages]
|
||||||
|
|
||||||
main:
|
main:
|
||||||
web_trigger_sync_to_gitea:
|
web_trigger_sync_to_gitea:
|
||||||
- <<: *common_env
|
- <<: *common_sync_to_gitea
|
||||||
services: !reference [.common_sync_to_gitea, services]
|
|
||||||
imports: !reference [.common_sync_to_gitea, imports]
|
|
||||||
stages: !reference [.common_sync_to_gitea, stages]
|
|
||||||
|
|
||||||
web_trigger_sync_from_gitea:
|
web_trigger_sync_from_gitea:
|
||||||
- <<: *common_env
|
- <<: *common_sync_from_gitea
|
||||||
stages:
|
|
||||||
- name: "测试变量"
|
|
||||||
script: |
|
|
||||||
echo "TO_REPO: ${TO_REPO}"
|
|
||||||
echo "TO_URL: ${TO_URL}"
|
|
||||||
echo '从gitea同步'
|
|
||||||
api_trigger_sync_to_gitea:
|
api_trigger_sync_to_gitea:
|
||||||
- <<: *common_env
|
- <<: *common_sync_to_gitea
|
||||||
stages:
|
|
||||||
- name: "测试变量"
|
|
||||||
script: |
|
|
||||||
echo "TO_REPO: ${TO_REPO}"
|
|
||||||
echo "TO_URL: ${TO_URL}"
|
|
||||||
echo '同步到gitea'
|
|
||||||
api_trigger_sync_from_gitea:
|
api_trigger_sync_from_gitea:
|
||||||
- <<: *common_env
|
- <<: *common_sync_from_gitea
|
||||||
stages:
|
|
||||||
- name: "测试变量"
|
|
||||||
script: |
|
|
||||||
echo "TO_REPO: ${TO_REPO}"
|
|
||||||
echo "TO_URL: ${TO_URL}"
|
|
||||||
echo '同步到gitea'
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
.common_sync_to_gitea: &common_sync_to_gitea
|
.common_sync_to_gitea_template: &common_sync_to_gitea_template
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
imports:
|
imports:
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
sync_mode: rebase
|
sync_mode: rebase
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
.common_sync_from_gitea: &common_sync_from_gitea
|
.common_sync_from_gitea_template: &common_sync_from_gitea_template
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
imports:
|
imports:
|
||||||
@@ -41,10 +41,10 @@
|
|||||||
|
|
||||||
# main:
|
# main:
|
||||||
# web_trigger_sync_to_gitea:
|
# web_trigger_sync_to_gitea:
|
||||||
# - <<: *common_sync_to_gitea
|
# - <<: *common_sync_to_gitea_template
|
||||||
# web_trigger_sync_from_gitea:
|
# web_trigger_sync_from_gitea:
|
||||||
# - <<: *common_sync_from_gitea
|
# - <<: *common_sync_from_gitea_template
|
||||||
# api_trigger_sync_to_gitea:
|
# api_trigger_sync_to_gitea:
|
||||||
# - <<: *common_sync_to_gitea
|
# - <<: *common_sync_to_gitea_template
|
||||||
# api_trigger_sync_from_gitea:
|
# api_trigger_sync_from_gitea:
|
||||||
# - <<: *common_sync_from_gitea
|
# - <<: *common_sync_from_gitea_template
|
||||||
|
|||||||
Reference in New Issue
Block a user