This commit is contained in:
2026-01-05 11:12:42 +08:00
parent 58801edbcb
commit 0f4fe4355c

View File

@@ -1,8 +1,5 @@
# .cnb.yml # .cnb.yml
$: $:
env:
FROM_REPO: kevisual/cnb
TO_REPO: kevisual/cnb
vscode: vscode:
- docker: - docker:
image: docker.cnb.cool/kevisual/dev-env:latest image: docker.cnb.cool/kevisual/dev-env:latest
@@ -20,17 +17,14 @@ $:
- docker - docker
imports: imports:
- https://cnb.cool/kevisual/env/-/blob/main/env.yml - https://cnb.cool/kevisual/env/-/blob/main/env.yml
env:
FROM_REPO: kevisual/cnb
TO_REPO: kevisual/cnb
stages: stages:
- name: 'show username'
script: echo "GITEA_USERNAME is ${GITEA_USERNAME} and GITEA_PASSWORD is ${GITEA_PASSWORD}"
- name: 'show targetURL'
script: echo "Target URL is https://git.xiongxiao.me/${TO_REPO}.git"
- name: 'show to'
script: echo "Target URL is https://cnb.cool/${FROM_REPO}.git"
- name: sync to gitea - name: sync to gitea
image: tencentcom/git-sync image: tencentcom/git-sync
settings: settings:
target_url: https://git.xiongxiao.me/kevisual/cnb.git target_url: https://git.xiongxiao.me/${TO_REPO}.git
auth_type: https auth_type: https
username: "oauth2" username: "oauth2"
password: ${GITEA_TOKEN} password: ${GITEA_TOKEN}
@@ -43,6 +37,9 @@ $:
- docker - docker
imports: imports:
- https://cnb.cool/kevisual/env/-/blob/main/env.yml - https://cnb.cool/kevisual/env/-/blob/main/env.yml
env:
FROM_REPO: kevisual/cnb
TO_REPO: kevisual/cnb
stages: stages:
- name: '添加 gitea的origin' - name: '添加 gitea的origin'
script: | script: |