update
This commit is contained in:
15
.cnb.yml
15
.cnb.yml
@@ -34,7 +34,20 @@ main:
|
|||||||
sync_mode: rebase
|
sync_mode: rebase
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
|
web_trigger_sync_from_gitea:
|
||||||
|
- services:
|
||||||
|
- docker
|
||||||
|
imports:
|
||||||
|
- https://cnb.cool/kevisual/env/-/blob/main/env.yml
|
||||||
|
stages:
|
||||||
|
- name: '添加 gitea的origin'
|
||||||
|
script: |
|
||||||
|
git remote remove gitea 2>/dev/null || true
|
||||||
|
git remote add gitea https://oauth2:${GITEA_TOKEN}@git.xiongxiao.me/kevisual/cnb.git
|
||||||
|
- name: '同步gitea代码到当前仓库'
|
||||||
|
script: git pull gitea main
|
||||||
|
- name: '提交到原本的origin'
|
||||||
|
script: git push origin main
|
||||||
|
|
||||||
"**":
|
"**":
|
||||||
web_trigger_test:
|
web_trigger_test:
|
||||||
|
|||||||
Reference in New Issue
Block a user