From 99be722b27430b68e7d3ecc1f43fe3b1ffb9afc5 Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 18 Jan 2024 18:43:06 +0000 Subject: [PATCH] Add init container to act-runner --- apps/gitea/runner-deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/gitea/runner-deployment.yaml b/apps/gitea/runner-deployment.yaml index 7d19496..63abeb0 100755 --- a/apps/gitea/runner-deployment.yaml +++ b/apps/gitea/runner-deployment.yaml @@ -24,6 +24,10 @@ spec: claimName: act-runner-vol securityContext: fsGroup: 1001 + initContainers: + - name: wait-for-gitea + image: busybox:1.28 + command: ['sh', '-c', "until wget https://git.namesny.com 2>/dev/null; do echo waiting for gitea; sleep 2; done"] containers: - name: runner image: gitea/act_runner:nightly-dind-rootless