From 179f7961b8f905f59a17f721a553beb1beea2417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D0=B8=D0=B4=20=D0=9E=D0=BC=D0=B0=D1=80=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=B4=D1=85=D0=B0=D1=82=20=7C=20Zaid=20Omar=20Medh?= =?UTF-8?q?at?= Date: Thu, 9 Jul 2026 12:30:21 +0500 Subject: [PATCH] ci: install docker CLI in deploy job The node:22-bookworm runner image mounts the Docker socket but lacks the docker client binary; install the static client before build/run steps. Co-Authored-By: Claude Opus 4.8 (1M context) --- .forgejo/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 23d74e7..3611133 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -15,6 +15,17 @@ jobs: - name: Checkout uses: actions/checkout@v4 + # The `node:22-bookworm` job image has the Docker socket mounted but not + # the docker CLI. Install just the static client binary so `docker ...` + # commands can talk to the host's Docker daemon. + - name: Install Docker CLI + run: | + if ! command -v docker >/dev/null 2>&1; then + curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.3.1.tgz \ + | tar -xz -C /usr/local/bin --strip-components=1 docker/docker + fi + docker version + # Build the site into an nginx image (see Dockerfile). Tagged with the # commit SHA for traceability, plus :latest for convenience. - name: Build image