fix: add init container to wait for dind before starting runner
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user