summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-15 02:27:58 +0900
committernsfisis <nsfisis@gmail.com>2023-03-15 02:27:58 +0900
commit60531fea01104c7056bbe11bdcb0379c9e5ac2d4 (patch)
tree5b2a7cc71440114b8c878a3d81fe680fee1fbcf0 /Makefile
parentf0b8b453003170d4fbbf442efc7d0700391453f9 (diff)
downloadnsfisis.dev-60531fea01104c7056bbe11bdcb0379c9e5ac2d4.tar.gz
nsfisis.dev-60531fea01104c7056bbe11bdcb0379c9e5ac2d4.tar.zst
nsfisis.dev-60531fea01104c7056bbe11bdcb0379c9e5ac2d4.zip
chore: add `make update_blog` task
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ce0c997e..480bceab 100644
--- a/Makefile
+++ b/Makefile
@@ -31,3 +31,9 @@ clean:
.PHONY: certbot
certbot:
docker-compose run --rm --entrypoint 'certbot certonly --register-unsafely-without-email --webroot -w /var/letsencrypt/www -d nsfisis.dev,blog.nsfisis.dev,www.nsfisis.dev' certbot
+
+.PHONY: update_blog
+update_blog:
+ cd vhosts/blog; git fetch --prune origin; git switch -d origin/main
+ git add vhosts/blog
+ git commit -m 'blog.nsfisis.dev: update'