add this to test the django code
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user