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: |
|
export_bitwarden.sh: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
bw config server https://bitwarden.tryton.geeraert.eu/
|
bw config server https://bitwarden.tryton.geeraert.eu/
|
||||||
export BW_key=$(bw login valvankart@orange.fr Impreza555 --raw)
|
echo $BITWARDEN_USERNAME
|
||||||
bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
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
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
|
|||||||
@@ -15,6 +15,17 @@ spec:
|
|||||||
- /bin/sh
|
- /bin/sh
|
||||||
- "-c"
|
- "-c"
|
||||||
- "/config/export_bitwarden.sh"
|
- "/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:
|
volumeMounts:
|
||||||
- name: scripts
|
- name: scripts
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
Reference in New Issue
Block a user