gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita41ba15fa41ba15fKunibert: event intake, git cache, review runner, posting, linked tickets, deploy filesKuniberta41ba15f/deploy/deploy.sh

1.3 KB

  1. #!/usr/bin/env bash
  2. # Deploy Kunibert to byrodin (Apollo 2026-11-02): git checkout in /CONTAINERS/projects/kunibert, systemd unit kunibert.service,
  3. # HL_ENV=production, listens on 127.0.0.1:45011 only. Data in /CONTAINERS/projects/kunibert-data, secrets/config in /root/.config/kunibert (600).
  4. # Usage (from loreana): deploy/deploy.sh [<hybriel binary to ship>] — pushes nothing; byrodin pulls main from gitoria.
  5. set -euo pipefail
  6. S=/media/STORAGE/projects/WorldAPI/worldapi-conductor/byrodin-ssh.sh; [email protected]; D=/CONTAINERS/projects/kunibert
  7. BIN=${1:-}
  8. $S $H "set -e; cd $D && git fetch -q origin && git reset -q --hard origin/main && git log --oneline -1"
  9. if [ -n "$BIN" ]; then
  10. scp -F /dev/null -o BatchMode=yes -o ControlPath=/tmp/atlas-ssh-%r@%h:%p "$BIN" $H:$D/bin/hybriel.new
  11. $S $H "mv $D/bin/hybriel.new $D/bin/hybriel && chmod 755 $D/bin/hybriel"
  12. fi
  13. $S $H "set -e; install -m 644 $D/deploy/kunibert.service /etc/systemd/system/kunibert.service && systemctl daemon-reload && systemctl enable -q kunibert.service && systemctl restart kunibert.service"
  14. for i in $(seq 1 20); do
  15. if $S $H "curl -sf -m 3 http://127.0.0.1:45011/health"; then echo; echo "deploy OK"; exit 0; fi; sleep 2
  16. done
  17. echo "deploy FAILED: no /health on 127.0.0.1:45011"; $S $H "journalctl -u kunibert.service -n 30 --no-pager"; exit 1

Branches

Latest commits

  • a41ba15fKunibert: event intake, git cache, review runner, posting, linked tickets, deploy filesKunibert