Update scripts
This commit is contained in:
parent
126a300e0f
commit
5391eabbfd
3
check.sh
3
check.sh
|
@ -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
17
deploy-all-full.sh
Executable 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
7
deploy-all.sh
Executable 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
|
Loading…
Reference in a new issue