From ef8915f1ca0215a0eb9bde8d6481348a32c05428 Mon Sep 17 00:00:00 2001 From: Timothy Date: Sat, 11 Jul 2026 00:09:26 +0200 Subject: [PATCH] ci: unpin MySQL service host port 3306 (concurrent-run collision) The migrations job connects via Server=mysql on the shared runner network; the host-port publish was unused and made overlapping runs fail with "Bind for 0.0.0.0:3306: port is already allocated" (bit PR #222 tonight, backlogged since #216). Co-Authored-By: Claude Fable 5 --- .gitea/workflows/docker-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 9ee826d92..43491716c 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -111,8 +111,9 @@ jobs: env: MYSQL_ROOT_PASSWORD: ersatztv MYSQL_DATABASE: ersatztv_migrations - ports: - - 3306:3306 + # No host-port binding: the job reaches this service as mysql:3306 on the shared + # runner network. Publishing 3306 made concurrent runs collide ("port is already + # allocated") whenever two migrations jobs overlapped. options: >- --health-cmd="mysqladmin ping -h 127.0.0.1 -uroot -persatztv --silent" --health-interval=5s