From 11653ed743a1cbaec0deea0107f56e25703d8e97 Mon Sep 17 00:00:00 2001 From: Christian Medina <37550954+cmedinasoriano@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:31:13 -0400 Subject: [PATCH] feat: add simple deploy-agenx-lora.sh script --- deploy-agenx-lora.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 deploy-agenx-lora.sh diff --git a/deploy-agenx-lora.sh b/deploy-agenx-lora.sh new file mode 100644 index 0000000..7fcea86 --- /dev/null +++ b/deploy-agenx-lora.sh @@ -0,0 +1,39 @@ +#!/bin/bash +# Simple deployment script for agenx-lora-training +# Clones repo to /opt/loras/agenx-lora-training and prepares it for training + +set -e + +REPO_DIR="/opt/loras/agenx-lora-training" +REPO_URL="https://gitea.cyaren.com/cmedina/agenx-lora-training.git" + +echo "=== Deploying agenx-lora-training ===" +echo "Repository: ${REPO_URL}" +echo "Target: ${REPO_DIR}" +echo "" + +# Create /opt/loras if it doesn't exist +if [ ! -d "/opt/loras" ]; then + echo "Creating /opt/loras..." + sudo mkdir -p /opt/loras + sudo chown $(whoami):$(whoami) /opt/loras +fi + +# Clone or update repo +if [ -d "${REPO_DIR}/.git" ]; then + echo "Repository exists, updating..." + cd "${REPO_DIR}" + git pull --ff-only origin main +else + echo "Cloning repository..." + git clone "${REPO_URL}" "${REPO_DIR}" +fi + +echo "" +echo "=== Done ===" +echo "Repository is at: ${REPO_DIR}" +echo "" +echo "Next steps:" +echo " cd ${REPO_DIR}" +echo " bash train-on-this-server.sh" +echo ""