.cnb.yml 619 B

12345678910111213141516
  1. # CNB 流水线:推送到 main 之后,自动把仓库同步到公司 Gogs 镜像。
  2. # 这样「只推一个源(CNB)」即可,Gogs 自动跟随。
  3. # 需要两个仓库级变量(CNB 仓库设置 → 环境变量/密钥):
  4. # GOGS_USER = wangshuo
  5. # GOGS_TOKEN = <Gogs 访问令牌/密码>
  6. main:
  7. push:
  8. - stages:
  9. - name: sync to gogs mirror
  10. image: tencentcom/git-sync
  11. settings:
  12. target_url: http://49.235.130.76/TeamPLT/Gallery.git
  13. auth_type: https
  14. username: ${GOGS_USER}
  15. password: ${GOGS_TOKEN}
  16. force: true