From 57b5d030d7f4dcc605cd744226a669523237f0eb Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 13 Jun 2024 21:46:08 -0400 Subject: [PATCH] feat(forgejo-runner): switch to a runner made for gitea for kubernetes support --- cluster/apps/dev/forgejo-runner/deploy.yaml | 82 ------------------- .../dev/forgejo-runner/kustomization.yaml | 4 +- cluster/apps/dev/forgejo-runner/runner.yaml | 77 +++++++++++++++++ .../dev/forgejo-runner/service-account.yaml | 43 ++++++++++ cluster/apps/dev/forgejo-runner/service.yaml | 11 +++ 5 files changed, 134 insertions(+), 83 deletions(-) delete mode 100644 cluster/apps/dev/forgejo-runner/deploy.yaml create mode 100644 cluster/apps/dev/forgejo-runner/runner.yaml create mode 100644 cluster/apps/dev/forgejo-runner/service-account.yaml create mode 100644 cluster/apps/dev/forgejo-runner/service.yaml diff --git a/cluster/apps/dev/forgejo-runner/deploy.yaml b/cluster/apps/dev/forgejo-runner/deploy.yaml deleted file mode 100644 index 1c02e718..00000000 --- a/cluster/apps/dev/forgejo-runner/deploy.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.29.4/deployment.json -apiVersion: apps/v1 -kind: Deployment -metadata: - name: forgejo-runner - namespace: dev - labels: - app: forgejo-runner -spec: - replicas: 5 - selector: - matchLabels: - app: forgejo-runner - template: - metadata: - labels: - app: forgejo-runner - spec: - restartPolicy: Always - - volumes: - - name: docker-certs - emptyDir: {} - - name: runner-data - emptyDir: {} - - initContainers: - - name: runner-config-generation - image: code.forgejo.org/forgejo/runner:3.3.0 - command: - - sh - - -c - - forgejo-runner register --no-interactive --instance $FORGEJO_INSTANCE_URL --token $RUNNER_TOKEN - - env: - - name: RUNNER_TOKEN - valueFrom: - secretKeyRef: - name: forgejo-runner-token - key: token - - name: FORGEJO_INSTANCE_URL - value: https://${SECRET_NEW_DOMAIN} - - volumeMounts: - - name: runner-data - mountPath: /data - - containers: - - name: runner - image: code.forgejo.org/forgejo/runner:3.3.0 - command: - - sh - - -c - - while ! nc -z localhost 2376