diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-09-21 12:57:11 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-09-21 12:57:11 -0400 |
| commit | 67c9dbcc9e289bfb158aae5015b88565837add9f (patch) | |
| tree | fb1d889753f26295c3e8b34fc3eb1a035c917fca | |
| parent | 00ad7bd8ad93bf065f6c5364cea6299557db4ccc (diff) | |
| download | x-67c9dbcc9e289bfb158aae5015b88565837add9f.tar.xz x-67c9dbcc9e289bfb158aae5015b88565837add9f.zip | |
kube/alrest/gitea: enable docker in CI runners
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | kube/alrest/gitea/runner.yaml | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/kube/alrest/gitea/runner.yaml b/kube/alrest/gitea/runner.yaml index 57a7b03..9280ba4 100644 --- a/kube/alrest/gitea/runner.yaml +++ b/kube/alrest/gitea/runner.yaml @@ -31,15 +31,8 @@ spec: emptyDir: {} containers: - name: runner - image: gitea/act_runner:nightly - command: ["sh", "-c", "while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...'; sleep 5; done; /sbin/tini -- /opt/act/run.sh"] + image: gitea/act_runner:nightly-dind-rootless env: - - name: DOCKER_HOST - value: tcp://localhost:2376 - - name: DOCKER_CERT_PATH - value: /certs/client - - name: DOCKER_TLS_VERIFY - value: "1" - name: GITEA_INSTANCE_URL value: http://git.gitea.svc.alrest.xeserv.us - name: GITEA_RUNNER_REGISTRATION_TOKEN @@ -47,19 +40,10 @@ spec: secretKeyRef: name: runner-secret key: token - volumeMounts: - - name: docker-certs - mountPath: /certs - - name: runner-data - mountPath: /data - subPath: "actions" - - name: dockerd - image: docker:27.0.2-dind - env: - - name: DOCKER_TLS_CERTDIR - value: /certs securityContext: privileged: true + runAsUser: 0 volumeMounts: - - name: docker-certs - mountPath: /certs + - name: runner-data + mountPath: /data + subPath: "actions"
\ No newline at end of file |
