add this to test the django code
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s

This commit is contained in:
2024-11-12 10:42:43 +00:00
parent 60a8bd0d00
commit 7b619b7355
+54
View File
@@ -0,0 +1,54 @@
apiVersion: batch/v1
kind: Job
metadata:
name: nextcloud-notes-backup-job-python
namespace: nextcloud
spec:
backoffLimit: 6
template:
spec:
containers:
- command:
- /bin/sh
- /config/export_notes.sh
env:
- name: PI_USER_USERNAME
valueFrom:
secretKeyRef:
key: PI_USER_USERNAME
name: nextcloud-credentials
- name: PI_USER_PASSWORD
valueFrom:
secretKeyRef:
key: PI_USER_PASSWORD
name: nextcloud-credentials
image: alpine
imagePullPolicy: Always
name: notes-backup
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /backup
name: notes
- mountPath: /var/www/html
name: nextcloud-webserver
- mountPath: /config
name: scripts
dnsPolicy: ClusterFirst
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: notes
persistentVolumeClaim:
claimName: nextcloud-notes-backup
- name: nextcloud-webserver
persistentVolumeClaim:
claimName: nextcloud-webserver
- configMap:
defaultMode: 365
name: nextcloud-export-scripts
name: scripts
ttlSecondsAfterFinished: 100