build: explicitly specify remote host key

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-05-18 15:17:30 +02:00
parent 6e01667e40
commit 49b25cf8d2
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -14,6 +14,7 @@ tasks:
cd c8h4.io
nix build
- deploy: |
echo 'fort.c8h4.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFFOE4T7/1+13rqroj6xB6UI8l11OqvWbcE5NFvhY7v+' >~/.ssh/known_hosts
tar -C c8h4.io/result -cvzf site.tar.gz .
set +x # do not completely clobber the output with gargabe
cat <(echo c8h4.io) <(cat site.tar.gz) | ssh -T -o StrictHostKeyChecking=no deploy@fort.c8h4.io
cat <(echo c8h4.io) <(cat site.tar.gz) | ssh -T deploy@fort.c8h4.io