Compare commits
3 commits
90049627c3
...
0dde11b99a
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 0dde11b99a | ||
Bruno BELANYI | 50477d0617 | ||
Bruno BELANYI | 98a7dbd365 |
|
@ -29,7 +29,6 @@ local Pipeline(isDev) = {
|
|||
{
|
||||
name: "deploy",
|
||||
commands: [
|
||||
"env",
|
||||
"nix run github:ambroisie/nix-config#drone-scp",
|
||||
],
|
||||
environment: {
|
||||
|
|
12
Makefile
12
Makefile
|
@ -13,18 +13,6 @@ build-prod:
|
|||
serve:
|
||||
hugo server -D -F
|
||||
|
||||
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 SSH_TARGET" >&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
mkdir -p ~/.ssh/
|
||||
touch ~/.ssh/known_hosts
|
||||
ssh-keygen -R "$$SSH_HOST" -f ~/.ssh/known_hosts
|
||||
ssh-keyscan "$$SSH_HOST" >> ~/.ssh/known_hosts
|
||||
rsync -e "ssh -o StrictHostKeyChecking=no" --progress -avz --delete public/ "$$SSH_USER@$$SSH_HOST:$$SSH_TARGET"
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) -r public
|
||||
|
|
Loading…
Reference in a new issue