From cc06ed6c09d8ef979adbd6cae2d17757b0ae20a3 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Sun, 7 Sep 2025 21:29:58 +0000 Subject: [PATCH] Update .gitea/workflows/ci-test.yaml --- .gitea/workflows/ci-test.yaml | 52 +++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.gitea/workflows/ci-test.yaml b/.gitea/workflows/ci-test.yaml index d2c54a7..ac18839 100644 --- a/.gitea/workflows/ci-test.yaml +++ b/.gitea/workflows/ci-test.yaml @@ -37,12 +37,12 @@ jobs: with: path: infra/iac - #- name: cloning iac secrets repository - # uses: actions/checkout@v4 - # with: - # repository: fenix-gitea-admin/iac-opentofu-private-secrets - # token: ${{ secrets.GGITEA_TOKEN }} - # path: infra/secrets + - name: cloning iac secrets repository + uses: actions/checkout@v4 + with: + repository: fenix-gitea-admin/iac-opentofu-private-secrets + token: ${{ secrets.GGITEA_TOKEN }} + path: infra/secrets - name: Install cloudflare prerequisites @@ -126,26 +126,26 @@ jobs: BW_SESSION=$(bw login) - - 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') - type=$(echo "$secret" | jq -r '.type') - output=$(echo "$secret" | jq -r '.output') - echo "$name $type $output" - item_id=$(bw get item "$name" --session "$BW_SESSION2" | jq -r '.id') - echo "$item_id" - if [ "$type" == "attachment" ]; then - echo "attachment get" - bw get attachment "$output" --itemid "$item_id" --output "$output" - elif [ "$type" == "note" ]; then - echo "note get" - bw get item "$name" | jq -r '.notes' > "$output" - fi - done + #- 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') + # type=$(echo "$secret" | jq -r '.type') + # output=$(echo "$secret" | jq -r '.output') + # echo "$name $type $output" + # item_id=$(bw get item "$name" --session "$BW_SESSION2" | jq -r '.id') + # echo "$item_id" + # if [ "$type" == "attachment" ]; then + # echo "attachment get" + # bw get attachment "$output" --itemid "$item_id" --output "$output" + # elif [ "$type" == "note" ]; then + # echo "note get" + # bw get item "$name" | jq -r '.notes' > "$output" + # fi + # done - name: Set up Python uses: actions/setup-python@v4