This commit is contained in:
2025-12-04 20:12:15 +08:00
parent 3cb666bc8f
commit 780172e9b4

43
.cnb.yml Normal file
View File

@@ -0,0 +1,43 @@
# .cnb.yml
$:
vscode:
- docker:
image: docker.cnb.cool/kevisual/node24: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:
- 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"