Files
cnb/.cnb.yml
2025-09-14 22:13:50 +08:00

30 lines
850 B
YAML

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: ${GITEA_USERNAME}
# password: ${GITEA_PASSWORD}
username: "oauth2"
password: "18cd3c00308c3813765dde41d093d48bed76fabd"
git_user: "abearxiong"
git_email: "xiongxiao@xiongxiao.me"
sync_mode: rebase
branch: main
"**":
web_trigger_test:
- stages:
- name: 执行任务
script: echo "job"