fixup! build: makefile: add deploy step
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2e8ae92d87
commit
4c699961ad
8
Makefile
8
Makefile
|
@ -19,10 +19,10 @@ deploy:
|
||||||
then echo "Missing one of SSH_USER, SSH_HOST, or SSH_TARGET" >&2; \
|
then echo "Missing one of SSH_USER, SSH_HOST, or SSH_TARGET" >&2; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
export HOME="$$(mktemp -d)"
|
mkdir -p ~/.ssh/
|
||||||
echo "$$HOME"
|
ssh-keygen -R "$$SSH_HOST"
|
||||||
@echo rsync -e "env HOME=\"$$HOME\" ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET"
|
ssh-keyscan "$$SSH_HOST" >> ~/.ssh/known_hosts
|
||||||
rsync -e "env HOME=\"$$HOME\" ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET"
|
rsync -e "ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET"
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue