summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-08-22 19:21:18 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-08-22 19:21:18 +0900
commit5a55c7893615c5a64856ecca681325a609d1fac0 (patch)
treec3031980890e0d038f44f1ef235c6983ada65266 /git
parentb3066893bf14622f716f8ca5d6def845cd76e56f (diff)
Add todo service: Caddyfile, repos.txt, hook, DNS entryHEADmaster
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'git')
-rw-r--r--git/hooks/todo/post-receive8
-rw-r--r--git/repos.txt1
2 files changed, 9 insertions, 0 deletions
diff --git a/git/hooks/todo/post-receive b/git/hooks/todo/post-receive
new file mode 100644
index 0000000..645b856
--- /dev/null
+++ b/git/hooks/todo/post-receive
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+APP_DIR=/app/todo
+GIT_WORK_TREE=$APP_DIR git checkout -f
+cd $APP_DIR
+mkdir -p data
+docker compose up -d --build
+echo "Deploy complete: todo"
diff --git a/git/repos.txt b/git/repos.txt
index 916400b..d57d36e 100644
--- a/git/repos.txt
+++ b/git/repos.txt
@@ -5,3 +5,4 @@ tokyo-livehouse-events:/app/tokyo-livehouse-events
whois-band:/app/whois-band
mosquitone-admin:/home/yyamashita/workspaces/repos/mosquitone-admin
microblog:/app/microblog
+todo:/app/todo