commit b45832efdc30d54ec6d2cc7880fe70ef1c86e49d (patch)
parent 190955bcfbfcca85c4170653334aae5501e5b852
Author: Alex Karle <alex@karle.co>
Date: Sun, 21 Jun 2020 22:35:01 -0400
make: Add release target for faster deploys
I previously was manually rsyncing and ssh-ing over to run the `make
install` target.
The learning moment here was that -t is needed for `doas` to get a
psuedo-terminal for the password prompting.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -8,3 +8,8 @@ build:
install: build
mkdir -p $(DEST)
cp build/* $(DEST)
+
+.PHONY: release
+release:
+ rsync --delete --exclude=.git -av ./ alexkarle.com:karleco/ && \
+ ssh -t alexkarle.com doas make -C karleco install