add gitea actions
This commit is contained in:
33
infrastructure/gitea/actions.deployment.yaml
Normal file
33
infrastructure/gitea/actions.deployment.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: actions-runner
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: actions-runner
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: actions-runner
|
||||
spec:
|
||||
containers:
|
||||
- name: actions-runner
|
||||
image: actions-runner
|
||||
securityContext:
|
||||
privileged: true # Add this line to allow running Docker
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "1000m"
|
||||
env:
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: "https://git.kluster.moll.re"
|
||||
- name: GITEA_RUNNER_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: actions-runner-secret
|
||||
key: runner-token
|
Reference in New Issue
Block a user