use different image

This commit is contained in:
2025-06-12 00:16:01 +05:30
parent 2562541995
commit af01268f17

View File

@@ -2,60 +2,71 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: gitea-actions-runner
namespace: default
labels: labels:
app: gitea-actions-runner app: gitea-act-runner
name: gitea-act-runner
namespace: default
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: gitea-actions-runner app: gitea-act-runner
strategy: {}
template: template:
metadata: metadata:
labels: labels:
app: gitea-actions-runner app: gitea-act-runner
spec: spec:
securityContext: restartPolicy: Always
fsGroup: 1000 volumes:
runAsUser: 1000 - name: docker-certs
runAsGroup: 1000 emptyDir: {}
- name: runner-data
persistentVolumeClaim:
claimName: longhorn-gitea-dind
initContainers: initContainers:
- name: wait-for-gitea - name: wait-for-gitea
image: busybox image: busybox
command: command:
- sh - sh
- -c - -c
- | - |
until nc -z -v -w30 gitea-int-service 3000; do while ! nc -z gitea-int-service 3000; do
echo "Waiting for gitea to be ready..." echo "Waiting for Gitea to be ready..."
sleep 2 sleep 5
done done
echo "Gitea is ready!"
containers: containers:
- name: runner - name: runner
image: gitea/act_runner:nightly-dind-rootless image: gitea/act_runner:nightly
securityContext: command: ["sh", "-c", "while ! nc -z localhost 2376 </dev/null; do echo 'waiting for docker daemon...'; sleep 5; done; /sbin/tini -- run.sh"]
privileged: true
runAsUser: 1000
runAsGroup: 1000
env: env:
- name: GITEA_INSTANCE_URL
value: "https://gitea.akshun-lab.uk"
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: gitea-runner-token
key: token
- name: DOCKER_HOST - name: DOCKER_HOST
value: tcp://localhost:2376 value: tcp://localhost:2376
- name: DOCKER_CERT_PATH - name: DOCKER_CERT_PATH
value: /certs/client value: /certs/client
- name: DOCKER_TLS_VERIFY - name: DOCKER_TLS_VERIFY
value: "1" value: "1"
- name: GITEA_INSTANCE_URL
value: https://gitea.akshun-lab.uk
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: gitea-runner-token
key: token
volumeMounts: volumeMounts:
- name: storage - name: docker-certs
mountPath: /certs
- name: runner-data
mountPath: /data mountPath: /data
volumes: - name: daemon
- name: storage image: docker:23.0.6-dind
persistentVolumeClaim: env:
claimName: longhorn-gitea-dind - name: DOCKER_TLS_CERTDIR
value: /certs
securityContext:
privileged: true
volumeMounts:
- name: docker-certs
mountPath: /certs