Something went wrong. Try again.
A Forgejo Runner plugin that spawn jobs as Kubernetes pods
kubernetes ci forgejo runner
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186apiVersion: v1kind: Namespacemetadata: name: forgejo-e2e
---apiVersion: v1kind: ConfigMapmetadata: name: forgejo-config namespace: forgejo-e2edata: app.ini: | APP_NAME = Forgejo E2E
[database] DB_TYPE = sqlite3 PATH = /data/forgejo/forgejo.db
[server] DOMAIN = forgejo HTTP_ADDR = 0.0.0.0 HTTP_PORT = 3000 ROOT_URL = http://localhost:3000/
[security] INSTALL_LOCK = true
[service] DISABLE_REGISTRATION = true REQUIRE_SIGNIN_VIEW = false
[mailer] ENABLED = false
[actions] ENABLED = true
---apiVersion: apps/v1kind: Deploymentmetadata: name: forgejo namespace: forgejo-e2espec: replicas: 1 strategy: type: Recreate
selector: matchLabels: app: forgejo
template: metadata: labels: app: forgejo annotations: e2e.kuranto.dev/manifest-hash: "$E2E_FORGEJO_MANIFEST_HASH"
spec: securityContext: runAsUser: 1000 runAsGroup: 1000 runAsNonRoot: true
initContainers: - name: initialize image: codeberg.org/forgejo/forgejo:16 imagePullPolicy: IfNotPresent
securityContext: runAsUser: 1000 runAsGroup: 1000 runAsNonRoot: true allowPrivilegeEscalation: false
command: - /bin/sh - -ec - | cp /config-source/app.ini /config/app.ini
forgejo migrate --config /config/app.ini
forgejo admin user create \ --config /config/app.ini \ --username e2e-admin \ --password e2e-admin \ --email e2e-admin@example.test \ --admin \ --must-change-password=false
volumeMounts: - name: data mountPath: /data
- name: config-source mountPath: /config-source readOnly: true
- name: config mountPath: /config
containers: - name: forgejo image: codeberg.org/forgejo/forgejo:16 imagePullPolicy: IfNotPresent
securityContext: runAsUser: 1000 runAsGroup: 1000 runAsNonRoot: true allowPrivilegeEscalation: false
command: - forgejo - web - --config - /config/app.ini
ports: - name: http containerPort: 3000
readinessProbe: httpGet: path: / port: http initialDelaySeconds: 2 periodSeconds: 2 timeoutSeconds: 2 failureThreshold: 30
livenessProbe: httpGet: path: / port: http initialDelaySeconds: 15 periodSeconds: 10 timeoutSeconds: 2 failureThreshold: 6
resources: requests: cpu: 100m memory: 256Mi limits: cpu: "1" memory: 1Gi
volumeMounts: - name: data mountPath: /data
- name: config mountPath: /config
volumes: - name: data emptyDir: {}
- name: config emptyDir: {}
- name: config-source configMap: name: forgejo-config
---apiVersion: v1kind: Servicemetadata: name: forgejo namespace: forgejo-e2espec: type: ClusterIP
selector: app: forgejo
ports: - name: http port: 80 targetPort: http