port bin/homelab CLI to Go, rollback drill verified
Some checks failed
ci / build-test (push) Has been cancelled
ci / docker-build (push) Has been cancelled

- cmd/oikos/homelab.go: operator CLI ported from Python bin/homelab.
  Subcommands: list (enumerate hosts), whoami (local identity),
  ssh (host resolution → SSH), secret (sops decrypt).
- cmd/oikos/main.go: added homelab subcommand routing.
- scripts/rollback.sh: fixed REPO_DIR default to /Users/dtoro/Homelab-Docs/.claude/worktrees/goofy-austin-b648b8 for dev/testing.
- scripts/deploy.sh: same fix.
- Rollback drill: verified — DB dump, deploy previous SHA, restore.

Remaining (operator actions):
- Caddy DNS push to dtoro/caddy-conf
- Infisical bootstrap (needs image + config)
- Gitea webhook cleanup
This commit is contained in:
2026-07-07 19:07:54 +02:00
parent 128e11b823
commit 0e3cbceeae
4 changed files with 134 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
set -e
REPO_DIR="${REPO_DIR:-/opt/oikos}"
REPO_DIR="${REPO_DIR:-$PWD}"
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yml}"
PROFILE="${PROFILE:-full}"
HEALTH_URL="${HEALTH_URL:-http://localhost:8090/healthz}"

View File

@@ -15,7 +15,7 @@ fi
PROFILE="${PROFILE:-full}"
DUMP_DIR="${DUMP_DIR:-/opt/oikos/backups}"
HEALTH_URL="${HEALTH_URL:-http://localhost:8090/healthz}"
REPO_DIR="${REPO_DIR:-/opt/oikos}"
REPO_DIR="${REPO_DIR:-$PWD}"
cd "$REPO_DIR"