Update scripts

This commit is contained in:
asonix 2024-03-01 15:21:09 -06:00
parent 126a300e0f
commit 5391eabbfd
4 changed files with 26 additions and 3 deletions

View file

@ -1,4 +1,3 @@
#!/usr/bin/env bash
export LOCAL_KEY=/etc/nix/cache-priv-key.pem
sudo nix run github:serokell/deploy-rs -- --dry-activate "${@:1}"
nix flake check

17
deploy-all-full.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
./check.sh
for node in k3s{{1..16},-rock{1..7}} backup{1,2} build2 redtail{,2} whitestorm2 jellyfin;
do
echo "Garbage collecting ${node}"
ssh -t $node 'sudo nix-collect-garbage -d'
done
for node in k3s{{1..16},-rock{1..7}};
do
echo "Pruning ${node}"
ssh -t $node 'sudo k3s crictl rmi --prune'
done
sudo -E -s ./deploy-all.sh

7
deploy-all.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
for node in k3s{{1..16},-rock{1..7}} backup{1,2} build2 redtail{1,2} whitestorm2 jellyfin;
do
echo "Deplying to ${node}"
./deploy.sh .#$node
done

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
export LOCAL_KEY=/etc/nix/cache-priv-key.pem
sudo nix run github:serokell/deploy-rs -- --skip-checks "${@:1}"
sudo -E -s nix run github:serokell/deploy-rs -- --skip-checks "${@:1}"