add repo
All checks were successful
阿里云仓库同步流水线 / sync-repositories (push) Successful in 1m26s

This commit is contained in:
2025-12-24 10:39:51 +08:00
parent 215df4f140
commit c8b749aade
2 changed files with 8 additions and 31 deletions

View File

@@ -44,37 +44,6 @@ jobs:
fi
echo "✓ 配置文件已找到"
- name: 网络连通性诊断
run: |
echo "================================================================================"
echo "网络连通性诊断"
echo "================================================================================"
echo ""
echo "[1] 检查DNS解析 (center.javablade.com):"
if command -v nslookup >/dev/null 2>&1; then
nslookup center.javablade.com || echo "❌ nslookup 失败"
elif command -v dig >/dev/null 2>&1; then
dig center.javablade.com || echo "❌ dig 失败"
else
getent hosts center.javablade.com || echo "❌ DNS 解析失败"
fi
echo ""
echo "[2] 检查网络连通性:"
if command -v ping >/dev/null 2>&1; then
ping -c 3 -W 5 center.javablade.com || echo "❌ ping 失败"
else
echo "⚠️ ping 命令不可用,跳过连通性测试"
fi
echo ""
echo "[3] 检查是否可以访问上游仓库(匿名测试):"
if command -v git >/dev/null 2>&1; then
timeout 30 git ls-remote https://center.javablade.com/blade/aliyun-Tool.git HEAD || echo "❌ 无法访问仓库"
else
echo "⚠️ git 命令不可用"
fi
echo ""
echo "================================================================================"
- name: 从配置文件中提取仓库并同步
env:
UPSTREAM_USERNAME: ${{ secrets.CODEUP_USERNAME }}

View File

@@ -5,3 +5,11 @@ repositories:
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"
branch: "master"
- name: "shell-util"
source_url: "https://${UPSTREAM_USERNAME}:${UPSTREAM_TOKEN}@codeup.aliyun.com/619ddf2bcfe94d7ade4c41ab/util/shell-util.git"
target_url: "https://${TARGET_USERNAME}:${TARGET_TOKEN}@gitea.fjy8018.top/util/shell-util.git"
branch: "master"
- name: "environment"
source_url: "https://${UPSTREAM_USERNAME}:${UPSTREAM_TOKEN}@codeup.aliyun.com/619ddf2bcfe94d7ade4c41ab/fjy8018/environment.git"
target_url: "https://${TARGET_USERNAME}:${TARGET_TOKEN}@gitea.fjy8018.top/fjy8018/environment.git"
branch: "master"