From 5769915d75572eec0c2d4a723111e6aded96e3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Fri, 26 Jun 2026 23:56:14 +0100 Subject: [PATCH] fix(cicd): install Docker CLI via static binary instead of apt --- .gitea/workflows/deploy.yaml | 4 +++- infrastructure/terraform/act-runner.tf | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ba8424e..bfecc70 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -24,7 +24,9 @@ jobs: - uses: actions/checkout@v4 - name: Install Docker CLI - run: apt-get update -qq && apt-get install -y -qq docker.io + run: | + curl -fsSL https://download.docker.com/linux/static/stable/aarch64/docker-27.3.1.tgz \ + | tar xzf - --strip-components=1 -C /usr/local/bin docker/docker - name: Login to Gitea registry run: | diff --git a/infrastructure/terraform/act-runner.tf b/infrastructure/terraform/act-runner.tf index 0d9b5d5..424d1dc 100644 --- a/infrastructure/terraform/act-runner.tf +++ b/infrastructure/terraform/act-runner.tf @@ -100,10 +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 + echo "Waiting for Docker daemon on :2375..." + until nc -z localhost 2375 2>/dev/null; do sleep 2 done + sleep 1 echo "Docker daemon ready." if [ ! -f /data/.runner ]; then act_runner register \