mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
[deploy-opentofu]
This commit is contained in:
@ -129,12 +129,10 @@ jobs:
|
||||
#BW_SESSION=$(bw login)
|
||||
bw login --apikey
|
||||
BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw)
|
||||
echo "$BW_SESSION"
|
||||
|
||||
- name: vaultwarden getsecrets
|
||||
working-directory: infra/iac
|
||||
run: |
|
||||
#BW_SESSION2=$(bw unlock --raw --session "$BW_SESSION")
|
||||
# Ler o arquivo de referência
|
||||
for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do
|
||||
name=$(echo "$secret" | jq -r '.name')
|
||||
@ -151,6 +149,7 @@ jobs:
|
||||
elif [ "$type" == "note" ]; then
|
||||
echo "note get"
|
||||
bw get item "$name" --session "$BW_SESSION" | jq -r '.notes' > "$output"
|
||||
cat $output
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user