.
Some checks failed
CI / Test (1.24) (push) Successful in -25m34s
CI / Test (1.25) (push) Successful in -25m27s
CI / Build (push) Successful in -25m56s
CI / Lint (push) Successful in -25m44s
Integration Tests / Integration Tests (push) Failing after -21m6s

This commit is contained in:
2025-12-28 19:10:51 +02:00
parent c0ef26b660
commit 7c6a355458

View File

@@ -58,22 +58,21 @@ jobs:
- name: Get PostgreSQL connection details
id: pg_connection
run: |
# Get container IP address
# Get container IP address from Docker bridge network
# This is needed because the runner itself is in a Docker container
CONTAINER_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' relspec-test-postgres)
echo "Container IP: $CONTAINER_IP"
# If container IP exists, use it with port 5432 (internal port)
# Otherwise fall back to localhost:5439
if [ -n "$CONTAINER_IP" ]; then
echo "Using container IP: $CONTAINER_IP:5432"
echo "pg_host=$CONTAINER_IP" >> $GITHUB_OUTPUT
echo "pg_port=5432" >> $GITHUB_OUTPUT
else
echo "Using localhost:5439"
echo "pg_host=localhost" >> $GITHUB_OUTPUT
echo "pg_port=5439" >> $GITHUB_OUTPUT
if [ -z "$CONTAINER_IP" ]; then
echo "ERROR: Could not get container IP address"
docker inspect relspec-test-postgres
exit 1
fi
echo "Container IP: $CONTAINER_IP"
echo "Using container IP: $CONTAINER_IP:5432"
echo "pg_host=$CONTAINER_IP" >> $GITHUB_OUTPUT
echo "pg_port=5432" >> $GITHUB_OUTPUT
echo ""
echo "=== Testing connection from inside container ==="
docker exec relspec-test-postgres psql -U relspec -d relspec_test -c "SELECT version();"