multi repo support
This commit is contained in:
22
configs/A_to_B.yaml
Normal file
22
configs/A_to_B.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
# A -> B 同步配置示例
|
||||
# 这个配置使用环境变量前缀: SYNC_A_B
|
||||
# 需要在 Gitea Secrets 中配置:
|
||||
# - SYNC_A_B_USERNAME
|
||||
# - SYNC_A_B_TOKEN
|
||||
|
||||
name: "A_to_B_Sync" # 同步任务名称,用于日志输出
|
||||
|
||||
repositories:
|
||||
# 示例:从源A同步到目标B
|
||||
- name: "bladex-tool"
|
||||
source_url: "https://${USERNAME}:${TOKEN}@center.javablade.com/blade/BladeX-Tool.git"
|
||||
target_url: "https://${USERNAME}:${TOKEN}@gitea.fjy8018.top/BladeX/BladeX-Tool.git"
|
||||
branch: "master"
|
||||
|
||||
# 示例:同步其他仓库(取消注释并修改)
|
||||
# - name: "another-repo"
|
||||
# source_url: "https://${USERNAME}:${TOKEN}@source.com/org/repo.git"
|
||||
# target_url: "https://${USERNAME}:${TOKEN}@target.com/org/repo.git"
|
||||
# branch: "main"
|
||||
|
||||
# 添加更多仓库同步配置...
|
||||
22
configs/B_to_C.yaml
Normal file
22
configs/B_to_C.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
# B -> C 同步配置示例
|
||||
# 这个配置使用环境变量前缀: SYNC_B_C
|
||||
# 需要在 Gitea Secrets 中配置:
|
||||
# - SYNC_B_C_USERNAME
|
||||
# - SYNC_B_C_TOKEN
|
||||
|
||||
name: "B_to_C_Sync" # 同步任务名称,用于日志输出
|
||||
|
||||
repositories:
|
||||
# 示例:从源B同步到目标C
|
||||
- name: "bladex-tool"
|
||||
source_url: "https://${USERNAME}:${TOKEN}@gitea.fjy8018.top/BladeX/BladeX-Tool.git"
|
||||
target_url: "https://${USERNAME}:${TOKEN}@target.com/backup/BladeX-Tool.git"
|
||||
branch: "master"
|
||||
|
||||
# 示例:同步其他仓库(取消注释并修改)
|
||||
# - name: "another-repo"
|
||||
# source_url: "https://${USERNAME}:${TOKEN}@source.com/org/repo.git"
|
||||
# target_url: "https://${USERNAME}:${TOKEN}@target.com/org/repo.git"
|
||||
# branch: "main"
|
||||
|
||||
# 添加更多仓库同步配置...
|
||||
Reference in New Issue
Block a user