diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-19 19:42:42 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-19 19:42:42 +0800 |
| commit | 9d71d06a1f3ee294634bf45373bbf1944bf03caf (patch) | |
| tree | e2f11ba0461615d51ea9e5469d0fd0038ba0e971 /deploy/systemd | |
| parent | ead9932988f519932af39767ae09cf55081bd17f (diff) | |
| download | blog-9d71d06a1f3ee294634bf45373bbf1944bf03caf.tar.gz | |
chore: add self-hosted deploy pipeline (blog-deploy)
Diffstat (limited to 'deploy/systemd')
| -rw-r--r-- | deploy/systemd/blog-deploy.path | 9 | ||||
| -rw-r--r-- | deploy/systemd/blog-deploy.service | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/deploy/systemd/blog-deploy.path b/deploy/systemd/blog-deploy.path new file mode 100644 index 00000000..0d0aa632 --- /dev/null +++ b/deploy/systemd/blog-deploy.path @@ -0,0 +1,9 @@ +[Unit] +Description=Watch for deploy signals written by blog.git post-receive hook + +[Path] +PathChanged=/home/somhairle/git/blog.git/deploy.signal +Unit=blog-deploy.service + +[Install] +WantedBy=default.target diff --git a/deploy/systemd/blog-deploy.service b/deploy/systemd/blog-deploy.service new file mode 100644 index 00000000..1d67cb80 --- /dev/null +++ b/deploy/systemd/blog-deploy.service @@ -0,0 +1,6 @@ +[Unit] +Description=Blog deploy: build Hexo from blog.git main and publish atomically + +[Service] +Type=oneshot +ExecStart=/home/somhairle/blog-deploy/scripts/build.sh |
