mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Merge pull request '[deploy-opentofu] bw unlock correction' (#243) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-opentofu-private#243
This commit is contained in:
@ -122,19 +122,22 @@ jobs:
|
|||||||
sleep 3
|
sleep 3
|
||||||
cat dante.log
|
cat dante.log
|
||||||
|
|
||||||
- name: vaultwarden login
|
#- name: vaultwarden login
|
||||||
working-directory: infra/iac
|
# working-directory: infra/iac
|
||||||
run: |
|
# run: |
|
||||||
bw config server https://vaultwarden.fenix-dev.com
|
# bw config server https://vaultwarden.fenix-dev.com
|
||||||
#BW_SESSION=$(bw login)
|
# #BW_SESSION=$(bw login)
|
||||||
bw login --apikey
|
# bw login --apikey
|
||||||
BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw)
|
# BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw)
|
||||||
echo "$BW_SESSION"
|
|
||||||
|
|
||||||
- name: vaultwarden getsecrets
|
- name: vaultwarden getsecrets
|
||||||
working-directory: infra/iac
|
working-directory: infra/iac
|
||||||
run: |
|
run: |
|
||||||
echo "$BW_SESSION"
|
bw config server https://vaultwarden.fenix-dev.com
|
||||||
|
bw login --apikey
|
||||||
|
BW_SESSION=$(bw unlock "$BW_PASSWORD" --raw)
|
||||||
|
|
||||||
# Ler o arquivo de referência
|
# Ler o arquivo de referência
|
||||||
for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do
|
for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do
|
||||||
name=$(echo "$secret" | jq -r '.name')
|
name=$(echo "$secret" | jq -r '.name')
|
||||||
|
|||||||
Reference in New Issue
Block a user