change to use secret instead of hardcoded username
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m28s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m28s
This commit is contained in:
@@ -3,8 +3,10 @@ data:
|
||||
export_bitwarden.sh: |
|
||||
#!/usr/bin/env bash
|
||||
bw config server https://bitwarden.tryton.geeraert.eu/
|
||||
export BW_key=$(bw login valvankart@orange.fr Impreza555 --raw)
|
||||
bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
||||
echo $BITWARDEN_USERNAME
|
||||
echo $BITWARDEN_PASSWORD
|
||||
# export BW_key=$(bw login valvankart@orange.fr Impreza555 --raw)
|
||||
# bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
|
||||
@@ -15,6 +15,17 @@ spec:
|
||||
- /bin/sh
|
||||
- "-c"
|
||||
- "/config/export_bitwarden.sh"
|
||||
env:
|
||||
- name: BITWARDEN_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bitwarden-credentials
|
||||
key: BITWARDEN_USERNAME
|
||||
- name: BITWARDEN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bitwarden-credentials
|
||||
key: BITWARDEN_PASSWORD
|
||||
volumeMounts:
|
||||
- name: scripts
|
||||
mountPath: /config
|
||||
|
||||
Reference in New Issue
Block a user