add new versions

This commit is contained in:
2024-10-23 15:21:55 +01:00
parent d663cdb266
commit 236dc62bc9
12 changed files with 207 additions and 74 deletions
+32
View File
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Namespace
metadata:
name: bwbackup
---
apiVersion: v1
kind: Pod
metadata:
name: debian
namespace: bwbackup
spec:
containers:
# - image: localhost:31795/bitwarden_cli
- image: gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:1.0.0
command:
- /bin/sh
- "-c"
# - "apt update && apt install -y curl unzip libsecret-1-0 jq"
# - "export VER=$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/bitwarden/clients/releases | jq -r .[4].name | sed 's:.*v::') && curl -LO "https://github.com/bitwarden/clients/releases/download/cli-v{$VER}/bw-linux-{$VER}.zip" && unzip bw-linux-*.zip && chmod +x ./bw "
# - "mv /bw /usr/local/bin"
- "sleep 60m"
volumeMounts:
- name: scripts
mountPath: /config
imagePullPolicy: IfNotPresent
name: debian
restartPolicy: Always
volumes:
- name: scripts
configMap:
name: bitwarden-export-scripts
defaultMode: 0555