moved over victorinix from https://github.com/c2vi/victorinix into parts/vic

This commit is contained in:
Sebastian Moser
2026-02-01 13:16:22 +01:00
parent 94d2ad9314
commit fa103b3fa7
23 changed files with 12861 additions and 0 deletions

24
parts/vic/deploy Normal file
View File

@@ -0,0 +1,24 @@
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