gitea act-runner

This commit is contained in:
Michael Thomson
2024-01-14 15:27:43 -05:00
parent 66d0a04ba5
commit e0d5558199
5 changed files with 69 additions and 0 deletions

8
act-runner/config.yaml Normal file
View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: act-runner-config
namespace: act-runner
data:
GITEA_INSTANCE_URL: "https://gitea.michaelthomson.dev"
GITEA_RUNNER_REGISTRATION_TOKEN: "PWwo9fPd5jFTdGi9LrUuWHFCXQi4xPosuQUpmQjX"

View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: act-runner
namespace: act-runner
spec:
selector:
matchLabels:
app: act-runner
template:
metadata:
labels:
app: act-runner
spec:
containers:
- name: act-runner
image: gitea/act_runner:nightly
envFrom:
- configMapRef:
name: act-runner-config
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: data

12
act-runner/pvc.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
namespace: act-runner
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 2Gi