Job containers need access to the DinD daemon for docker build/push. Mount /var/run/docker.sock from DinD into job containers and set docker_host in runner config.
19 lines
409 B
YAML
19 lines
409 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: gitea-runner-config
|
|
namespace: platform
|
|
data:
|
|
config.yaml: |
|
|
log:
|
|
level: info
|
|
runner:
|
|
capacity: 1
|
|
timeout: 1h
|
|
container:
|
|
options: "-v pnpm-store:/pnpm-store -v /var/run/docker.sock:/var/run/docker.sock"
|
|
docker_host: tcp://localhost:2375
|
|
valid_volumes:
|
|
- "pnpm-store"
|
|
- "/var/run/docker.sock"
|