fixed a url bug

This commit is contained in:
GuanYuankai 2025-11-11 13:24:38 +08:00
parent 4072d33bed
commit fe9ae61200
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ jobs:
# 2. 构造带有身份验证的 Git URL # 2. 构造带有身份验证的 Git URL
# 我们将使用您用于 Docker 登录的 gitea.actor 和 secrets.cicd # 我们将使用您用于 Docker 登录的 gitea.actor 和 secrets.cicd
# gitea.repository_url = http://192.168.0.75:3000/guanyuankai/bonus-edge-proxy
gitea.repository_url = http://192.168.0.75:3000/guanyuankai/bonus-edge-proxy
# 转换后 = http://guanyuankai:YOUR_SECRET@192.168.0.75:3000/guanyuankai/bonus-edge-proxy.git # 转换后 = http://guanyuankai:YOUR_SECRET@192.168.0.75:3000/guanyuankai/bonus-edge-proxy.git
echo "构造 Git URL..." echo "构造 Git URL..."
REPO_URL_WITH_CREDS=$(echo "${{ gitea.repository_url }}" | sed "s|://|://${{ gitea.actor }}:${{ secrets.cicd }}@|").git REPO_URL_WITH_CREDS=$(echo "${{ gitea.repository_url }}" | sed "s|://|://${{ gitea.actor }}:${{ secrets.cicd }}@|").git