From ef6dbdd2ac273dc4a01c70437ee7984cea9f2a3c Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 17 May 2026 11:29:27 +0900 Subject: Reorganize repo into caddy/, git/, claude/ directories - caddy/: Caddyfile, docker-compose.yml, deploy.sh (hook runs this only) - git/: repos.txt, hooks/*/post-receive, install.sh, server-setup.sh - claude/: sessions.txt, systemd/claude-code@.service, sync.sh Post-receive hook is now: checkout + bash caddy/deploy.sh Co-Authored-By: Claude Sonnet 4.6 --- git/hooks/hetzner-infra/post-receive | 5 +++++ git/hooks/tokyo-livehouse-events/post-receive | 8 ++++++++ git/hooks/whois-band/post-receive | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100755 git/hooks/hetzner-infra/post-receive create mode 100755 git/hooks/tokyo-livehouse-events/post-receive create mode 100755 git/hooks/whois-band/post-receive (limited to 'git/hooks') diff --git a/git/hooks/hetzner-infra/post-receive b/git/hooks/hetzner-infra/post-receive new file mode 100755 index 0000000..d41659b --- /dev/null +++ b/git/hooks/hetzner-infra/post-receive @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +GIT_WORK_TREE=/app/infra git checkout -f +bash /app/infra/caddy/deploy.sh +echo "Deploy complete: hetzner-infra" diff --git a/git/hooks/tokyo-livehouse-events/post-receive b/git/hooks/tokyo-livehouse-events/post-receive new file mode 100755 index 0000000..ca64767 --- /dev/null +++ b/git/hooks/tokyo-livehouse-events/post-receive @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +APP_DIR=/app/tokyo-livehouse-events +GIT_WORK_TREE=$APP_DIR git checkout -f +cd $APP_DIR +mkdir -p data +docker compose up -d --build +echo "Deploy complete: tokyo-livehouse-events" diff --git a/git/hooks/whois-band/post-receive b/git/hooks/whois-band/post-receive new file mode 100755 index 0000000..60b368f --- /dev/null +++ b/git/hooks/whois-band/post-receive @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +APP_DIR=/app/whois-band +GIT_WORK_TREE=$APP_DIR git checkout -f +cd $APP_DIR +mkdir -p data +docker compose up -d --build +echo "Deploy complete: whois-band" -- cgit v1.2.3