Compare commits

..

12 Commits

Author SHA1 Message Date
47fe4c1343 更新 readme.md 2025-09-14 22:33:27 +08:00
1e91062141 update 2025-09-14 22:15:15 +08:00
e1b13e4779 q 2025-09-14 22:13:50 +08:00
3021d864bd Q 2025-09-14 22:11:13 +08:00
efc02a2a44 t 2025-09-14 22:04:45 +08:00
3e124221bf https 2025-09-14 22:00:22 +08:00
ecaea47db7 s 2025-09-14 21:59:42 +08:00
75d4ff77c5 2025-09-14 21:59:14 +08:00
9b49bfeecf te 2025-09-14 21:56:14 +08:00
05a1012a9f t 2025-09-14 21:46:15 +08:00
73301390a2 update 2025-09-14 21:43:35 +08:00
e5124e545d update 2025-09-14 21:40:36 +08:00
4 changed files with 36 additions and 16 deletions

28
.cnb.yml Normal file
View File

@@ -0,0 +1,28 @@
main:
web_trigger_sync_to_gitea:
- services:
- docker
imports:
- https://cnb.cool/kevisual/env/-/blob/main/env.yml
stages:
- name: 'show username'
script: echo "GITEA_USERNAME is ${GITEA_USERNAME} and GITEA_PASSWORD is ${GITEA_PASSWORD}"
- name: sync to gitea
image: tencentcom/git-sync
settings:
target_url: https://git.xiongxiao.me/kevisual/cnb.git
auth_type: https
username: "oauth2"
password: ${GITEA_TOKEN}
git_user: "abearxiong"
git_email: "xiongxiao@xiongxiao.me"
sync_mode: rebase
branch: main
"**":
web_trigger_test:
- stages:
- name: 执行任务
script: echo "job"

View File

@@ -1,13 +0,0 @@
main:
sync_to_gitea:
- services:
- docker
imports: https://cnb.cool/kevisual/env/-/blob/main/env.yml
- stages:
- name: sync to gitea
image: tencentcom/git-sync
settings:
target_url: https://git.xiongxiao.me/kevisual/cnb.git
auth_type: https
username: ${GITEA_USERNAME}
password: ${GITEA_ACCESS_TOKEN}

View File

@@ -5,7 +5,7 @@ branch:
buttons:
- name: 同步代码到gitea
desc: 同步代码到gitea
event: sync_to_gitea
event: web_trigger_sync_to_gitea
- name: 同步gitea代码到当前仓库
desc: 同步gitea代码到当前仓库
event: sync_from_gitea
event: web_trigger_sync_from_gitea

View File

@@ -1 +1,6 @@
# 研究cnb的使用
# 研究cnb的使用
### 代码同步
1. 从cnb同步到本地gitea
2. 从本地gitea同步到cnb