This commit is contained in:
@@ -77,8 +77,8 @@ jobs:
|
|||||||
|
|
||||||
- name: 从配置文件中提取仓库并同步
|
- name: 从配置文件中提取仓库并同步
|
||||||
env:
|
env:
|
||||||
UPSTREAM_USERNAME: ${{ secrets.UPSTREAM_USERNAME }}
|
UPSTREAM_USERNAME: ${{ secrets.CODEUP_USERNAME }}
|
||||||
UPSTREAM_TOKEN: ${{ secrets.UPSTREAM_TOKEN }}
|
UPSTREAM_TOKEN: ${{ secrets.CODEUP_PASSWORD }}
|
||||||
TARGET_USERNAME: ${{ secrets.TARGET_USERNAME }}
|
TARGET_USERNAME: ${{ secrets.TARGET_USERNAME }}
|
||||||
TARGET_TOKEN: ${{ secrets.TARGET_TOKEN }}
|
TARGET_TOKEN: ${{ secrets.TARGET_TOKEN }}
|
||||||
run: python3 sync_repos.py
|
run: python3 sync_repos.py
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
# 定义需要同步的仓库对,源仓库 -> 目标仓库
|
# 定义需要同步的仓库对,源仓库 -> 目标仓库
|
||||||
repositories:
|
repositories:
|
||||||
- name: "pve-k3s-gitops"
|
- name: "pve-k3s-gitops"
|
||||||
source_url: "https://${CODEUP_USERNAME}:${CODEUP_PASSWORD}@codeup.aliyun.com/619ddf2bcfe94d7ade4c41ab/fjy8018/pve-k3s-gitops.git"
|
source_url: "https://${UPSTREAM_USERNAME}:${UPSTREAM_TOKEN}@codeup.aliyun.com/619ddf2bcfe94d7ade4c41ab/fjy8018/pve-k3s-gitops.git"
|
||||||
target_url: "https://${TARGET_USERNAME}:${TARGET_TOKEN}@gitea.fjy8018.top/fjy8018/pve-k3s-gitops.git"
|
target_url: "https://${TARGET_USERNAME}:${TARGET_TOKEN}@gitea.fjy8018.top/fjy8018/pve-k3s-gitops.git"
|
||||||
branch: "master"
|
branch: "master"
|
||||||
|
|||||||
Reference in New Issue
Block a user