Run build job in docker:27-cli container with host socket mount
Build & Deploy / build (push) Failing after 2s
Build & Deploy / deploy (push) Has been skipped

act_runner spawns an ephemeral container per job; the default image
lacks the docker CLI and cannot reach the host's Docker daemon. Use
the official docker:27-cli image and bind-mount /var/run/docker.sock
so docker build/push target the host engine.

Requires runner config.yaml to include /var/run/docker.sock in
container.valid_volumes; otherwise the mount is rejected.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
rlabadmin
2026-04-23 14:29:43 +02:00
parent 3545d8a6f0
commit dde3f49571
+4
View File
@@ -30,6 +30,10 @@ jobs:
# ============================================================ # ============================================================
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: docker:27-cli
volumes:
- /var/run/docker.sock:/var/run/docker.sock
outputs: outputs:
image_tag: ${{ steps.meta.outputs.tag }} image_tag: ${{ steps.meta.outputs.tag }}
steps: steps: