fixup! fixup! build: makefile: add deploy step

This commit is contained in:
Bruno BELANYI 2021-08-08 17:14:08 +02:00
parent 0cee06c573
commit 324c0cc77d

View file

@ -16,7 +16,7 @@ serve:
deploy:
@if [ -n "$$SSH_KEY" ]; then eval "$$(ssh-agent)"; echo "$$SSH_KEY" | ssh-add -; fi
@if [ -z "$$SSH_USER" ] || [ -z "$$SSH_HOST" ] || [ -z "$$SSH_TARGET" ]; \
then echo "Missing one of SSH_USER, SSH_HOST, or TARGET" >&2; \
then echo "Missing one of SSH_USER, SSH_HOST, or SSH_TARGET" >&2; \
exit 1; \
fi
rsync --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$TARGET"