From 340fc8ba574cf19e4370b9a93fafab1a7e943ca1 Mon Sep 17 00:00:00 2001 From: Lucas Seidelin Rosenvold Christensen Date: Fri, 18 Sep 2026 15:06:40 +0200 Subject: [PATCH] Fix pipeline: run build job in a container with docker CLI The runner's default job image has no docker binary. Run the job in docker:27-cli with a docker:27-dind sidecar service instead of relying on the runner exposing a host docker socket. Co-Authored-By: Claude Sonnet 5 --- .forgejo/workflows/build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 7061ed2..5d6b708 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -7,10 +7,17 @@ on: jobs: build-and-push: - # Needs docker-in-docker: the runner's job container must have access to - # a docker socket (e.g. act_runner configured with - # -v /var/run/docker.sock:/var/run/docker.sock) for buildx to work. runs-on: docker + # The default job image has no docker CLI, so run in an image that has + # one and talk to a sidecar dind daemon over the network instead of + # relying on the runner exposing a host docker socket. + container: docker:27-cli + services: + docker: + image: docker:27-dind + options: --privileged + env: + DOCKER_HOST: tcp://docker:2375 steps: - name: Checkout uses: actions/checkout@v4