fix: fix permissions on private key
Some checks failed
Deploy Website / build-and-deploy (push) Failing after 26s
Some checks failed
Deploy Website / build-and-deploy (push) Failing after 26s
This commit is contained in:
parent
f5756ac652
commit
c6e6c58313
@ -18,7 +18,7 @@ jobs:
|
|||||||
cat - <<EOD > ssh-key
|
cat - <<EOD > ssh-key
|
||||||
${{ secrets.DEPLOY_SSH_KEY }}
|
${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
EOD
|
EOD
|
||||||
|
chmod 400 ssh-key
|
||||||
export NIX_PATH=nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels/nixos
|
export NIX_PATH=nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels/nixos
|
||||||
/run/current-system/sw/bin/nix-shell -p rsync openssh --run \
|
/run/current-system/sw/bin/nix-shell -p rsync openssh --run \
|
||||||
'rsync -avz -e "ssh -oStrictHostKeyChecking=accept-new -i ssh-key" result/* deploy@andrew.riouxs.co:/srv/site'
|
'rsync -avz -e "ssh -oStrictHostKeyChecking=accept-new -i ssh-key" result/* deploy@andrew.riouxs.co:/srv/site'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user