26 lines
758 B
Bash
26 lines
758 B
Bash
|
|
#!/bin/bash
|
||
|
|
# sync_agent_config.sh
|
||
|
|
# Dieses Skript synchronisiert die lokalen Antigravity-Konfigurationen
|
||
|
|
# mit dem versionierten Backup-Repository auf OMV und pusht sie zu Forgejo.
|
||
|
|
|
||
|
|
set -e
|
||
|
|
|
||
|
|
REPO_DIR="/Volumes/omv-150/MayaDO/Infrastruktur/agent-bootstrap"
|
||
|
|
CONFIG_SRC="${HOME}/.gemini/config"
|
||
|
|
|
||
|
|
echo "=== 1. Kopiere lokale Konfigurationen ==="
|
||
|
|
cp "${CONFIG_SRC}/AGENTS.md" "${REPO_DIR}/rules/AGENTS.md"
|
||
|
|
cp "${CONFIG_SRC}/mcp_config.json" "${REPO_DIR}/mcp/mcp_config.json"
|
||
|
|
|
||
|
|
echo "=== 2. Commit & Push ==="
|
||
|
|
cd "${REPO_DIR}"
|
||
|
|
|
||
|
|
if [[ -n $(git status --porcelain) ]]; then
|
||
|
|
git add .
|
||
|
|
git commit -m "style(config): auto-sync rules and mcp configuration"
|
||
|
|
git push origin main
|
||
|
|
echo "Erfolgreich zu Forgejo gepusht!"
|
||
|
|
else
|
||
|
|
echo "Keine Änderungen vorhanden."
|
||
|
|
fi
|