diff --git a/cluster/apps/gitea/gitea-act.yml b/cluster/apps/gitea/gitea-act.yml index 8b5071d..44a381c 100644 --- a/cluster/apps/gitea/gitea-act.yml +++ b/cluster/apps/gitea/gitea-act.yml @@ -2,60 +2,71 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: gitea-actions-runner - namespace: default labels: - app: gitea-actions-runner + app: gitea-act-runner + name: gitea-act-runner + namespace: default spec: replicas: 1 selector: matchLabels: - app: gitea-actions-runner + app: gitea-act-runner + strategy: {} template: metadata: labels: - app: gitea-actions-runner + app: gitea-act-runner spec: - securityContext: - fsGroup: 1000 - runAsUser: 1000 - runAsGroup: 1000 + restartPolicy: Always + volumes: + - name: docker-certs + emptyDir: {} + - name: runner-data + persistentVolumeClaim: + claimName: longhorn-gitea-dind initContainers: - name: wait-for-gitea image: busybox command: - - sh - - -c - - | - until nc -z -v -w30 gitea-int-service 3000; do - echo "Waiting for gitea to be ready..." - sleep 2 - done + - sh + - -c + - | + while ! nc -z gitea-int-service 3000; do + echo "Waiting for Gitea to be ready..." + sleep 5 + done + echo "Gitea is ready!" containers: - name: runner - image: gitea/act_runner:nightly-dind-rootless - securityContext: - privileged: true - runAsUser: 1000 - runAsGroup: 1000 + image: gitea/act_runner:nightly + command: ["sh", "-c", "while ! nc -z localhost 2376