Merge pull request '[deploy-opentofu]' (#239) from fenix-admin into main

Reviewed-on: fenix-gitea-admin/iac-opentofu-private#239
This commit is contained in:
2025-09-08 14:31:10 +00:00

View File

@ -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