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
39e180aad4
commit
966664d3a7
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 \
|
-v /mnt/cache/appdata/dockge/container/jukebox/sounds/:/data/sounds:rw \
|
||||||
"$DEPLOY_IMAGE"
|
"$DEPLOY_IMAGE"
|
||||||
- docker ps --filter name="$CONTAINER_NAME" --format "ID={{.ID}} Status={{.Status}} Image={{.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
|
||||||
|
|
||||||
bump-version:
|
bump-version:
|
||||||
stage: bump-version
|
stage: bump-version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue