diff --git a/.cnb.yml b/.cnb.yml index 07c57b3..8220ac5 100644 --- a/.cnb.yml +++ b/.cnb.yml @@ -34,7 +34,20 @@ main: sync_mode: rebase 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: