mirror of
https://github.com/zoriya/snow.git
synced 2026-08-11 08:40:30 +00:00
41 lines
891 B
YAML
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
|
|
|