Files
computer-playbook/scripts/github/cleanup_docker_runner.sh
T
kevinveenbirkenbachandClaude Opus 4.7 b1b73bc1df refactor(lint): tighten inline-script lint to 11 lines + extract overflows
Drops `MAX_LINES` from 12 to 11 in `test_inline_script_block_size.py`,
catching the five blocks that were sitting exactly on the previous
threshold. Pure-bash blocks move to dedicated `.sh` files invoked via
`ansible.builtin.script:` or `run: bash …`; the keycloak heredoc with a
templated JSON payload splits into a `set_fact` plus a folded
`printf | kcadm … -f -` one-liner.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 22:06:32 +02:00

19 lines
503 B
Bash
Executable File

#!/usr/bin/env bash
#
# Cleanup pass for the Docker / buildx state on a GitHub-hosted runner.
# Used by images-build-ci.yml as the always-on tail of the build job to
# free disk before the runner is reused (or recycled).
set -euo pipefail
echo "=== Cleanup ==="
docker buildx prune -af || true
docker builder prune -af || true
docker image prune -af || true
docker container prune -f || true
echo
echo "=== Disk pressure: AFTER CLEANUP ==="
df -h
echo
docker system df || true
docker buildx du || true