summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-rwxr-xr-xgit/hooks/microblog/post-receive8
-rw-r--r--git/repos.txt2
2 files changed, 9 insertions, 1 deletions
diff --git a/git/hooks/microblog/post-receive b/git/hooks/microblog/post-receive
new file mode 100755
index 0000000..2627861
--- /dev/null
+++ b/git/hooks/microblog/post-receive
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+APP_DIR=/app/microblog
+GIT_WORK_TREE=$APP_DIR git checkout -f
+cd $APP_DIR
+mkdir -p data
+docker compose up -d --build
+echo "Deploy complete: microblog"
diff --git a/git/repos.txt b/git/repos.txt
index cbdf1f0..916400b 100644
--- a/git/repos.txt
+++ b/git/repos.txt
@@ -4,4 +4,4 @@ hetzner-infra:/app/infra
tokyo-livehouse-events:/app/tokyo-livehouse-events
whois-band:/app/whois-band
mosquitone-admin:/home/yyamashita/workspaces/repos/mosquitone-admin
-microblog:/home/yyamashita/workspaces/repos/microblog
+microblog:/app/microblog