This commit is contained in:
Sebastian Moser
2024-08-31 09:46:32 +02:00
parent 3f68b90506
commit 96942e9322
9 changed files with 100 additions and 29 deletions

23
deploy Normal file
View File

@@ -0,0 +1,23 @@
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
scp -r $path/* ocih:host/webserver/webfiles
fi