Fix MTU for all Docker networks and add DinD readiness wait
CI - Lint & Test / lint-and-test (push) Failing after 1m8s Details

- Add --default-network-opt to apply MTU=1340 to custom networks
  (not just default bridge) that act_runner creates per job
- Revert container.network to default (custom per-job network)
- Add DinD TLS cert readiness check before starting runner daemon

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cloud User 2026-02-25 16:42:19 +09:00
parent e9fb0566b0
commit d111151fa3
1 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@ data:
- "ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04" - "ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04"
- "self-hosted:host" - "self-hosted:host"
container: container:
network: "bridge" network: ""
privileged: false privileged: false
options: options:
valid_volumes: [] valid_volumes: []
@ -58,6 +58,11 @@ spec:
- sh - sh
- -c - -c
- | - |
# Wait for DinD TLS certs to be ready
echo "Waiting for Docker daemon..."
while [ ! -f /certs/client/ca.pem ]; do sleep 1; done
sleep 2
echo "Docker daemon is ready"
# Register if not already registered # Register if not already registered
if [ ! -f /data/.runner ]; then if [ ! -f /data/.runner ]; then
act_runner register --no-interactive \ act_runner register --no-interactive \
@ -87,6 +92,7 @@ spec:
image: docker:dind image: docker:dind
args: args:
- --mtu=1340 - --mtu=1340
- --default-network-opt=bridge=com.docker.network.driver.mtu=1340
securityContext: securityContext:
privileged: true privileged: true
env: env: