CHORE: debug bytes dos secrets de banco no workflow
All checks were successful
Deploy Dev / Deploy para VM Dev (push) Successful in 7s

This commit is contained in:
Rafael Alves Lopes 2026-07-22 10:26:48 -03:00
parent 4f987e6146
commit b2a0ff3a9c

View File

@ -58,7 +58,11 @@ jobs:
PGPASSWORD: ${{ secrets.DB_PASSWORD }} PGPASSWORD: ${{ secrets.DB_PASSWORD }}
run: | run: |
set -euo pipefail set -euo pipefail
echo "Host: [${PGHOST}] Porta: [${PGPORT}]" PGHOST="${PGHOST//[$'\t\r\n ']}"
PGPORT="${PGPORT//[$'\t\r\n ']}"
export PGHOST PGPORT
echo "Bytes PGHOST: $(echo -n "$PGHOST" | wc -c)"
echo "Bytes PGPORT: $(echo -n "$PGPORT" | wc -c)"
echo "Testando TCP..." echo "Testando TCP..."
timeout 5 bash -c "cat /dev/null > /dev/tcp/${PGHOST}/${PGPORT}" \ timeout 5 bash -c "cat /dev/null > /dev/tcp/${PGHOST}/${PGPORT}" \
&& echo "TCP OK" \ && echo "TCP OK" \