1
0
Fork 0

podman: keep certain images

This commit is contained in:
Daniel Kempkens 2023-12-11 10:29:38 +01:00
parent f9c9f0c438
commit 8bc9918654
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
autoPrune = { autoPrune = {
enable = true; enable = true;
dates = "weekly"; dates = "weekly";
flags = [ "--all" ]; flags = [ "--all" "--filter=label!=io.kempkens.keepImage" ];
}; };
}; };
@ -55,7 +55,7 @@
{ {
Type = "oneshot"; Type = "oneshot";
ExecStart = "${podman}/bin/podman auto-update"; ExecStart = "${podman}/bin/podman auto-update";
ExecStartPost = "${podman}/bin/podman image prune -f"; ExecStartPost = "${podman}/bin/podman image prune -f --filter=label!=io.kempkens.keepImage";
}; };
}; };
} }

View file

@ -56,7 +56,7 @@ in
NSSWITCH NSSWITCH
tar -cv . | tar -tvf - tar -cv . | tar -tvf -
tar -cv . | podman import - forgejo-runner-nix tar -cv . | podman import --change "LABEL io.kempkens.keepImage=true" - forgejo-runner-nix
''; '';
serviceConfig = { serviceConfig = {
RuntimeDirectory = "forgejo-runner-nix-image"; RuntimeDirectory = "forgejo-runner-nix-image";