mirror of
https://github.com/zoriya/snow.git
synced 2026-08-15 18:44:14 +00:00
Add gitea sync
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user