fix: add init container to wait for dind before starting runner

This commit is contained in:
Ryan Moon
2026-04-03 06:37:57 -05:00
parent fd5be2805f
commit 705dab6e49

View File

@@ -13,6 +13,15 @@ spec:
labels:
app: gitea-runner
spec:
initContainers:
- name: wait-for-dind
image: docker:cli
command: ["sh", "-c", "until docker info > /dev/null 2>&1; do echo 'waiting for dind...'; sleep 2; done"]
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: DOCKER_TLS_VERIFY
value: "0"
containers:
- name: runner
image: gitea/act_runner:latest