Compare commits
3 commits
0986c64a80
...
70a023df7a
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 70a023df7a | ||
Bruno BELANYI | 324c0cc77d | ||
Bruno BELANYI | 0cee06c573 |
|
@ -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: {
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue