ci/cache: Prune profile generations
Explicitly remove expired generations from the nonstandard Harmonia profile before collecting garbage. This keeps old CI closures from remaining rooted until the cache exhausts its inodes.
This commit is contained in:
+4
-1
@@ -12,7 +12,10 @@ remote_cmd() {
|
||||
|
||||
collect_garbage() {
|
||||
echo "Collecting garbage..."
|
||||
remote_cmd nix-collect-garbage --delete-older-than 60d
|
||||
remote_cmd nix-env \
|
||||
-p "$REMOTE_STORE"/nix/var/nix/profiles/nixfiles \
|
||||
--delete-generations 60d
|
||||
remote_cmd nix-collect-garbage
|
||||
}
|
||||
|
||||
umask_old=$(umask)
|
||||
|
||||
Reference in New Issue
Block a user