Remove untagged images after a healthy deploy

Every deploy leaves the previous :latest behind untagged on Unraid. The deploy
job now prunes untagged images once the health gate passed; a rollback pulls
its :<sha> from the registry anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-10-10 20:53:41 +02:00
1 parent 55cd201429
commit 955e2faa3f
2 files changed
+7

No files matched your search

+5
View File
@@ -119,3 +119,8 @@ jobs:
echo "eb-blazor did not report healthy within 60 seconds." >&2
docker logs --tail 50 eb-blazor >&2
exit 1
# Every deploy leaves the previous :latest behind as an untagged image. Only
# untagged images go; a rollback pulls its :<sha> from the registry anyway.
- name: Remove untagged images
run: docker image prune -f