fix: use remote Gitea directly, remove local fallback

This commit is contained in:
Christian Medina
2026-06-30 15:20:03 -04:00
parent 6946ebac1a
commit 0614166c7a

View File

@@ -21,16 +21,12 @@ DEPLOY_USER="${LORA_DEPLOY_USER:-}"
DEPLOY_TOKEN="${LORA_DEPLOY_TOKEN:-}" DEPLOY_TOKEN="${LORA_DEPLOY_TOKEN:-}"
# Build the repo URL; embed user:token for HTTPS auth when provided. # Build the repo URL; embed user:token for HTTPS auth when provided.
# Use local Gitea if available, otherwise fall back to remote # Use remote Gitea (local Gitea instances may not be accessible)
if ping -c 1 -W 1 192.168.50.232 &>/dev/null; then
REPO_URL="${LORA_DEPLOY_REPO_URL:-http://192.168.50.232:8091/cmedina/agenx-lora-training.git}"
else
if [ -n "${DEPLOY_USER}" ] && [ -n "${DEPLOY_TOKEN}" ]; then if [ -n "${DEPLOY_USER}" ] && [ -n "${DEPLOY_TOKEN}" ]; then
REPO_URL="${LORA_DEPLOY_REPO_URL:-https://${DEPLOY_USER}:${DEPLOY_TOKEN}@gitea.cyaren.com/cmedina/agenx-lora-training.git}" REPO_URL="${LORA_DEPLOY_REPO_URL:-https://${DEPLOY_USER}:${DEPLOY_TOKEN}@gitea.cyaren.com/cmedina/agenx-lora-training.git}"
else else
REPO_URL="${LORA_DEPLOY_REPO_URL:-https://gitea.cyaren.com/cmedina/agenx-lora-training.git}" REPO_URL="${LORA_DEPLOY_REPO_URL:-https://gitea.cyaren.com/cmedina/agenx-lora-training.git}"
fi fi
fi
REPO_DIR="${LORA_DEPLOY_REPO_DIR:-/opt/loras/agenx-lora-training}" REPO_DIR="${LORA_DEPLOY_REPO_DIR:-/opt/loras/agenx-lora-training}"
BRANCH="${LORA_DEPLOY_BRANCH:-main}" BRANCH="${LORA_DEPLOY_BRANCH:-main}"
REMOTE="${LORA_DEPLOY_REMOTE:-origin}" REMOTE="${LORA_DEPLOY_REMOTE:-origin}"