Prune stale Docker networks in API CI

This commit is contained in:
Jeppe Bundgaard
2026-07-01 10:53:25 +02:00
parent 9db1964038
commit 713d40a876
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -227,6 +227,9 @@ jobs:
with:
node-version: 22
- name: Prune stale Docker networks
run: docker network prune -f
- name: Boot local stack
run: docker compose -f docker-compose.yml -f .github/docker-compose.ci.yml up -d traefik redis mysql-debug edge-broker php1 php2 php3 php4 php5 caddy
+5
View File
@@ -84,6 +84,10 @@ composer_install() {
'cd /var/www/html && composer install --no-interaction --prefer-source --no-progress'
}
prune_unused_docker_networks() {
docker network prune -f >/dev/null 2>&1 || true
}
cleanup() {
status="$?"
collect_logs "$status"
@@ -103,6 +107,7 @@ cleanup() {
}
trap cleanup EXIT INT TERM
prune_unused_docker_networks
retry_command "${PHP_CI_DOCKER_RETRIES:-3}" docker compose $compose_files up -d redis mysql-debug php1
docker compose $compose_files exec -T php1 sh -lc '