ci: prune docker cache after CI runs

This commit is contained in:
openhands committed 2026-09-05 20:13:13 +02:00
1 parent 98b0009206
commit 226d280c22
1 file changed
+13 -2
+13 -2
View File
@@ -140,8 +140,6 @@ jobs:
-v /var/www/Gamedata:/var/www/Gamedata \
epicnext-cms:latest
docker image prune -f
- name: Health check
run: |
for i in $(seq 1 30); do
@@ -162,6 +160,19 @@ jobs:
docker compose -f /var/www/atom-nexst/docker-compose.yml up -d --no-build 2>&1 || true
exit 1
- name: Prune Docker cache
if: always()
run: |
# Ruim de self-hosted runner op zodat de Docker daemon niet
# volloopt. Draaiende containers/images (o.a. de net-deployed
# epicnext-cms-app) worden nooit geraakt, alleen ongebruikte
# images, build-cache, volumes en networks verdwijnen.
docker image prune -af || true
docker container prune -f || true
docker volume prune -f || true
docker network prune -f || true
docker builder prune -af --keep-storage=2g || true
# ─────────────────────────────────────────────
# E2E smoke against the freshly deployed container.
# Runs after a successful deploy on main/master only