From 6afc95ef4c6a6624b5c8856d0ed055d059369176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Fri, 26 Jun 2026 23:45:53 +0100 Subject: [PATCH] fix(cicd): wait for DinD to be ready before starting act runner --- infrastructure/terraform/act-runner.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure/terraform/act-runner.tf b/infrastructure/terraform/act-runner.tf index 471d481..0d9b5d5 100644 --- a/infrastructure/terraform/act-runner.tf +++ b/infrastructure/terraform/act-runner.tf @@ -100,6 +100,11 @@ resource "kubernetes_deployment" "act_runner" { command = ["/bin/sh", "-c"] args = [<<-EOT set -e + echo "Waiting for Docker daemon..." + until docker -H tcp://localhost:2375 info > /dev/null 2>&1; do + sleep 2 + done + echo "Docker daemon ready." if [ ! -f /data/.runner ]; then act_runner register \ --no-interactive \