podman: keep certain images
This commit is contained in:
parent
f9c9f0c438
commit
8bc9918654
2 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue