[deploy-opentofu]

This commit is contained in:
2025-09-07 21:10:00 +00:00
parent 239313d556
commit c3b3e828b0

View File

@ -131,13 +131,14 @@ jobs:
- name: vaultwarden getsecrets
working-directory: infra/iac
run: |
BW_SESSION2=$(bw unlock --raw)
# Ler o arquivo de referência
for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do
name=$(echo "$secret" | jq -r '.name')
type=$(echo "$secret" | jq -r '.type')
output=$(echo "$secret" | jq -r '.output')
echo "$name $type $output"
item_id=$(bw get item "$name" | jq -r '.id')
item_id=$(bw get item "$name" --session "$BW_SESSION2" | jq -r '.id')
echo "$item_id"
if [ "$type" == "attachment" ]; then
echo "attachment get"