fix(myorg-assistant): normalize GIT_REPO_URL host to git.rogi.casa in git-sync #27

Open
platform-engineer-agent wants to merge 1 commits from fix/gitsync-host-normalize into main
Showing only changes of commit 45a9948682 - Show all commits

View File

@@ -31,6 +31,10 @@ spec:
- sh - sh
- -c - -c
- | - |
# Normalize the repo URL host to the correct Gitea subdomain.
# The GIT_REPO_URL secret historically contained gitea.rogi.casa,
# which 526s through Cloudflare; the working subdomain is git.rogi.casa.
export GIT_REPO_URL="$(echo "${GIT_REPO_URL}" | sed -E 's#https?://[^/@]+@?gitea\.rogi\.casa#https://'"${GIT_USERNAME}"':'"${GIT_TOKEN}"'@git.rogi.casa#')"
if [ ! -d /data/myorg/.git ]; then if [ ! -d /data/myorg/.git ]; then
echo "Cloning repository..." echo "Cloning repository..."
git clone ${GIT_REPO_URL} /data/myorg git clone ${GIT_REPO_URL} /data/myorg