Use doppler for Wakatime, key.txt, ovpn_config runner hook

This commit is contained in:
2025-03-03 02:23:14 -06:00
parent b73887bfad
commit 093fd52451
3 changed files with 3 additions and 5 deletions

View File

@@ -7,4 +7,4 @@ ignore =
PULLREQ_EDITMSG$
MERGE_MSG$
TAG_EDITMSG$
api_key = {{ (rbw "Wakatime API Key").data.password }}
api_key = {{ dopplerProjectJson.WAKATIME_API_KEY }}

View File

@@ -1,3 +1 @@
{{- $name := "key.txt (age)" -}}
{{ (rbw $name).notes }}
{{ (rbw $name).data.password }}
{{ dopplerProjectJson.KEY_TXT }}

View File

@@ -21,7 +21,7 @@ function displaytime {
download() {
echo "Downloading OpenVPN-Config.ovpn"
TEMP_FILE=$(mktemp)
if bw get attachment 'OpenVPN-Config.ovpn' --itemid eca96b94-ee35-4aa8-a58f-b21e016c94a3 --output "$TEMP_FILE"; then
if doppler secrets get OPENVPN_CONFIG --plain >> "$TEMP_FILE"; then
mkdir -p "$(dirname "$FILE")"
mv "$TEMP_FILE" "$FILE"
else