From 11ed6566b991fbafe7f19c486e430c8847da0a0e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 2 Jun 2026 17:43:40 -0400 Subject: [PATCH] fix gitlabci --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 51a6917..a2c9fff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,7 +78,18 @@ build_image: variables: HEALTHCHECK_TCP_PORT: "2375" before_script: - - until docker info >/dev/null 2>&1; do echo "Waiting for Docker daemon..."; sleep 1; done + - | + attempts=0 + until docker info >/dev/null 2>&1; do + attempts=$((attempts + 1)) + if [ "$attempts" -ge 60 ]; then + echo "Docker daemon did not become ready after 60 seconds." >&2 + echo "On self-hosted runners, docker:dind requires the runner Docker executor to run with privileged = true." >&2 + exit 1 + fi + echo "Waiting for Docker daemon..." + sleep 1 + done # Prefer GitLab's built-in registry variables, but allow explicit fallbacks # so the pipeline can publish to any OCI-compatible registry. - export REGISTRY_HOST="${CI_REGISTRY:-${REGISTRY_HOST:-}}"