Compare commits

..

3 commits

Author SHA1 Message Date
Bruno BELANYI 70a023df7a fixup! fixup! build: makefile: add deploy step
Some checks failed
continuous-integration/drone/push Build is failing
2021-08-08 17:14:08 +02:00
Bruno BELANYI 324c0cc77d fixup! fixup! build: makefile: add deploy step 2021-08-08 17:14:08 +02:00
Bruno BELANYI 0cee06c573 fixup! 445b879afa 2021-08-08 17:13:04 +02:00
2 changed files with 2 additions and 3 deletions

View file

@ -29,7 +29,6 @@ local Pipeline(isDev) = {
{ {
name: "deploy", name: "deploy",
commands: [ commands: [
"nix shell nixpkgs#openssh",
"nix develop -c make deploy", "nix develop -c make deploy",
], ],
environment: { environment: {

View file

@ -16,10 +16,10 @@ serve:
deploy: deploy:
@if [ -n "$$SSH_KEY" ]; then eval "$$(ssh-agent)"; echo "$$SSH_KEY" | ssh-add -; fi @if [ -n "$$SSH_KEY" ]; then eval "$$(ssh-agent)"; echo "$$SSH_KEY" | ssh-add -; fi
@if [ -z "$$SSH_USER" ] || [ -z "$$SSH_HOST" ] || [ -z "$$SSH_TARGET" ]; \ @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; \ exit 1; \
fi fi
rsync --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$TARGET" rsync --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET"
.PHONY: clean .PHONY: clean
clean: clean: