From 60531fea01104c7056bbe11bdcb0379c9e5ac2d4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 15 Mar 2023 02:27:58 +0900 Subject: chore: add `make update_blog` task --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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' -- cgit v1.2.3-70-g09d2