Compare commits

..

No commits in common. "c8ca121e156ec89abafb0f67bf16c57276c3b1af" and "d34f723db8abbf8a05e8e2347b405ddad9ed23e7" have entirely different histories.

View file

@ -22,21 +22,15 @@ jobs:
--health-timeout 5s
--health-retries 12
steps:
- name: Probe aliases v2
- name: Probe TCP localhost:5433
run: |
set -uo pipefail
for target in postgres:5432 localhost:5433 127.0.0.1:5433; do
host="${target%:*}"
port="${target#*:}"
if (echo > /dev/tcp/"$host"/"$port") 2>/dev/null; then
echo "REACHABLE: $target"
else
echo "unreachable: $target"
set -euo pipefail
for i in $(seq 1 20); do
if (echo > /dev/tcp/localhost/5433) 2>/dev/null; then
echo "CONNECTED to localhost:5433"
exit 0
fi
sleep 2
done
if (echo > /dev/tcp/postgres/5432) 2>/dev/null; then
echo "FINAL: postgres:5432 OK"
else
echo "FINAL: nada alcançável"
exit 1
fi
echo "FAILED to reach localhost:5433"
exit 1