refac: reorganize scripts and ci workflows

This commit is contained in:
Timothy Jaeryang Baek
2026-05-12 03:26:18 +09:00
parent 90a02e623f
commit 070ab26501
22 changed files with 903 additions and 1523 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
# ---------------------------------------------------------------------------
# Pull the latest version of every model installed in the Ollama container.
# ---------------------------------------------------------------------------
readonly CONTAINER="${OLLAMA_CONTAINER:-ollama}"
echo "Fetching installed models from '${CONTAINER}' container..."
models=$(docker exec "$CONTAINER" ollama list | tail -n +2 | awk '{print $1}')
if [[ -z "$models" ]]; then
echo "No models found."
exit 0
fi
echo "Updating models..."
while IFS= read -r model; do
echo " Pulling ${model}..."
docker exec "$CONTAINER" ollama pull "$model"
done <<< "$models"
echo "All models updated."