refactor: move helper scripts into .bin folder and update tasks.json

This commit is contained in:
yeti
2025-05-16 10:02:00 +01:00
parent a565ed4c33
commit 54baa71622
6 changed files with 3 additions and 8 deletions

12
.bin/clean_dangling_images.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Get list of image IDs with <none> tag (dangling images)
dangling_images=$(podman images -f "dangling=true" -q)
if [ -z "$dangling_images" ]; then
echo "✅ No dangling images to remove."
else
echo "⚠️ Removing dangling images..."
echo "$dangling_images" | xargs podman rmi -f
echo "🧹 Done!"
fi