diff --git a/cluster/apps/gitea/gitea-act.yml b/cluster/apps/gitea/gitea-act.yml index 7ab669d..e6b5317 100644 --- a/cluster/apps/gitea/gitea-act.yml +++ b/cluster/apps/gitea/gitea-act.yml @@ -19,13 +19,20 @@ spec: initContainers: - name: wait-for-gitea image: busybox - command: ['sh', '-c', 'until nslookup gitea-service 3011; do echo waiting for gitea; sleep 2; done'] + command: + - sh + - -c + - | + until nc -z -v -w30 gitea-int-service 3000; do + echo "Waiting for gitea to be ready..." + sleep 2 + done containers: - name: runner image: gitea/act_runner:latest env: - name: GITEA_INSTANCE_URL - value: "http://gitea-service:3011/" + value: "http://gitea-int-service:3000/" - name: GITEA_RUNNER_REGISTRATION_TOKEN valueFrom: secretKeyRef: