use configmap to run the script
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -14,12 +14,12 @@ spec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- "-c"
|
||||
- "bw config server https://bitwarden.tryton.geeraert.eu/"
|
||||
- "export BW_key=$(bw login valvankart@orange.fr Impreza555 --raw)"
|
||||
- "sleep 3600"
|
||||
- "/config/export_bitwarden.sh"
|
||||
volumeMounts:
|
||||
- name: scripts
|
||||
mountPath: /config
|
||||
- name: bitwarden-vault-backup
|
||||
mountPath: /backup
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: debian
|
||||
restartPolicy: Always
|
||||
@@ -28,3 +28,24 @@ spec:
|
||||
configMap:
|
||||
name: bitwarden-export-scripts
|
||||
defaultMode: 0555
|
||||
- name: bitwarden-vault-backup
|
||||
persistentVolumeClaim:
|
||||
claimName: bitwarden-vault-backup
|
||||
|
||||
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: bitwarden-vault-backup
|
||||
namespace: bwbackup
|
||||
annotations:
|
||||
fileType: Backup
|
||||
spec:
|
||||
storageClassName: nfs-storage-fastaccess
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user