This commit is contained in:
2025-09-14 23:47:52 +08:00
parent c2d3e3c740
commit f6cd39be4c
6 changed files with 160 additions and 0 deletions

35
.cnb.yml Normal file
View File

@@ -0,0 +1,35 @@
# .cnb.yml
$:
vscode:
- docker:
image: docker.cnb.cool/kevisual/dev-env:latest
services:
- vscode
- docker
imports: https://cnb.cool/kevisual/env/-/blob/main/env.yml
# 开发环境启动后会执行的任务
stages:
- name: pnpm install
script: pnpm install
main:
web_trigger_sync_to_gitea:
- services:
- docker
imports:
# 这里修改为自己的env仓库地址
- https://cnb.cool/kevisual/env/-/blob/main/env.yml
stages:
- name: sync to gitea
image: tencentcom/git-sync
settings:
# 修改为你的gitea仓库地址
target_url: https://git.xiongxiao.me/kevisual/ai-images.git
auth_type: https
username: "oauth2"
password: ${GITEA_TOKEN}
git_user: "abearxiong"
git_email: "xiongxiao@xiongxiao.me"
sync_mode: rebase
branch: main