GitHub Action
Stale Image Remover
v1.0.1
Latest version
There's only one script in the repo, it deletes image (PNG, JPG, JPEG) files that are not currently being used in a git repository.
For convenience, there is an image on Docker Hub, run this command from your git project root:
docker run -v `pwd`:/source stevemar/image-deleter:latest
Or feel free to copy the file and run it locally:
./rm-images.sh
The script will run git rm
on the unused images. It's up to you to run git commit
and git push
.
If you want to re-build this with debug logs, just add this line to the Dockerfile
:
ENV DEBUG=true
Re-build it locally and run it.