Compare commits

..

No commits in common. "70a023df7a7534b50742a1b83f95d2d3d99fe1bb" and "0986c64a80e5098f66a13554c24c2a6053b5b6bf" have entirely different histories.

2 changed files with 3 additions and 2 deletions

View file

@ -29,6 +29,7 @@ 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 SSH_TARGET" >&2; \ then echo "Missing one of SSH_USER, SSH_HOST, or TARGET" >&2; \
exit 1; \ exit 1; \
fi fi
rsync --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET" rsync --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$TARGET"
.PHONY: clean .PHONY: clean
clean: clean: