Files
snow/charts/gitea-sync/deploy.yaml
T
2025-08-29 22:57:10 +02:00

41 lines
891 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-sync
spec:
template:
spec:
containers:
- name: sync
image: nixery.dev/shell/curl/jq
command:
- bash
- -c
- |-
while true; do
/app/mirror.sh -m user -u zoriya
sleep 24h
done
env:
- name: GITEA_URL
value: http://gitea-http.gitea.svc:3000
- name: ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: gitea-sync
key: gitea-token
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: gitea-sync
key: github-token
volumeMounts:
- name: scripts
mountPath: /app
volumes:
- name: scripts
configMap:
name: scripts
defaultMode: 0555