Closed
Description
incus-simplestreams
is a nice tool, but it's missing two features :
- Removal of orphan image tarballs (not referenced by
images.json
) -> This might be triggered by aincus-simplestreams add
with an image with identical properties and same date, but different checksum - Removal of old
version
s of aproduct
: When publishing a new image, the old one stays and we need manual tooling to clean it up.
I implemented those two features in a python script : https://github.com/YunoHost/lxd_img_builder/blob/master/prune_incus_simplestreams.py but it would be really nice to have a incus-simplestreams prune
command that does both jobs.
EDIT: considering the lack of those features, i'm wondering about the intended workflow : maybe it would be better to have a "staging" repository that i'd fill with new versions of the images and then swap the real repo and the staging repo…