Compare commits

..

3 commits

Author SHA1 Message Date
Bruno BELANYI 0dde11b99a build: makefile: change title on dev deployment
All checks were successful
continuous-integration/drone/push Build is passing
2021-08-08 18:22:45 +02:00
Bruno BELANYI 50477d0617 ci: use exec runner 2021-08-08 18:22:45 +02:00
Bruno BELANYI 98a7dbd365 build: makefile: add deploy step 2021-08-08 18:20:09 +02:00
3 changed files with 0 additions and 15 deletions

View file

@ -29,7 +29,6 @@ local Pipeline(isDev) = {
{ {
name: "deploy", name: "deploy",
commands: [ commands: [
"env",
"nix run github:ambroisie/nix-config#drone-scp", "nix run github:ambroisie/nix-config#drone-scp",
], ],
environment: { environment: {

View file

@ -13,18 +13,6 @@ build-prod:
serve: serve:
hugo server -D -F 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 .PHONY: clean
clean: clean:
$(RM) -r public $(RM) -r public

View file

@ -67,8 +67,6 @@
buildInputs = with pkgs; [ buildInputs = with pkgs; [
gnumake gnumake
hugo hugo
openssh
rsync
]; ];
inherit (self.checks.${system}.pre-commit) shellHook; inherit (self.checks.${system}.pre-commit) shellHook;