Files
mize/packages/vic/deploy
Sebastian Moser f2e73e677a ...
2026-02-20 11:28:45 +01:00

25 lines
471 B
Plaintext

if [[ "$1" == "a" ]]
then
ssh acern mkdir -p /tmp/victorinix
rsync -rv --exclude="target" ./* acern:/tmp/victorinix/
path=$(ssh acern nix build /tmp/victorinix#webfiles -L --print-out-paths)
echo doneeeeeeeeeeeeeee
echo path: $path
scp -r acern:$path/* ocih:host/webserver/webfiles
else
path=$(nix build .#webfiles -L -v --print-out-paths $@)
echo doneeeeeeeeeeeeeee
echo path: $path
[[ "$path" != "" ]] && scp -r $path/* ocih:host/data/my-website
fi