CI: docker image prune nach jedem Deploy
Entfernt dangling/orphan Images automatisch nach docker pull + deploy. Verhindert dass sich alte untagged Images ansammeln (~533MB pro Build). [skip ci] Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
41d2c0e570
commit
970e1c2bc1
1 changed files with 2 additions and 0 deletions
|
|
@ -170,6 +170,8 @@ deploy:
|
|||
-v /mnt/cache/appdata/dockge/container/jukebox/sounds/:/data/sounds:rw \
|
||||
"$DEPLOY_IMAGE"
|
||||
- docker ps --filter name="$CONTAINER_NAME" --format "ID={{.ID}} Status={{.Status}} Image={{.Image}}"
|
||||
- echo "[Deploy] Cleaning up dangling images..."
|
||||
- docker image prune -f || true
|
||||
|
||||
deploy-nightly:
|
||||
stage: deploy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue