fava service

This commit is contained in:
Roger Oriol
2026-01-31 01:18:55 +01:00
parent f5fed81fab
commit b15ed39cff
2 changed files with 43 additions and 1 deletions

View File

@@ -112,6 +112,41 @@ spec:
port: 5000
initialDelaySeconds: 5
periodSeconds: 5
- name: git-sync
image: alpine/git:latest
command:
- /bin/sh
- -c
- |
while true; do
echo "Syncing repository at $(date)"
cd /data/contabilitat
git config --global --add safe.directory /data/contabilitat
git pull || echo "Failed to pull, will retry in 1 hour"
echo "Next sync in 1 hour"
sleep 3600
done
env:
- name: GITEA_USERNAME
valueFrom:
secretKeyRef:
name: gitea-credentials
key: username
- name: GITEA_PASSWORD
valueFrom:
secretKeyRef:
name: gitea-credentials
key: password
volumeMounts:
- name: data
mountPath: /data
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 128Mi
volumes:
- name: data
persistentVolumeClaim: