feat(runner): add docker CLI to act_runner image for host-exec labels

qa/self-hosted labels run jobs directly in the runner container (Alpine),
which lacked a docker client despite the mounted host socket.
This commit is contained in:
2026-07-04 11:49:51 -07:00
parent 5dc033230d
commit 93e6f0bd2b
3 changed files with 5 additions and 1 deletions

2
runner/Dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM gitea/act_runner:latest
RUN apk add --no-cache docker-cli docker-cli-compose

View File

@@ -1,6 +1,6 @@
services:
runner:
image: gitea/act_runner:latest
build: .
container_name: gitea-runner
restart: unless-stopped
environment:

View File

@@ -64,6 +64,8 @@ runner:
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
- "ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04"
- "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
- "qa"
- "self-hosted"
cache:
# Enable cache server to use actions/cache.