fix: share job container network with Qdrant
Docker Build and Push / test (pull_request) Successful in 13s
Docker Build and Push / integration-test (pull_request) Failing after 1m49s
Docker Build and Push / build (pull_request) Has been skipped

docker run -d publishes ports to the Docker bridge network, but the
job container runs on a different Gitea Actions network. This causes
Connection refused when tests try http://localhost:6333.

Use --network container:$(hostname) so Qdrant shares the job container's
network stack, making localhost reachable.
This commit is contained in:
2026-06-12 08:14:35 -04:00
parent 14650619ad
commit d784cd9fba
+1 -1
View File
@@ -30,7 +30,7 @@ jobs:
- name: Start Qdrant
run: |
docker run -d --name qdrant \
-p 6333:6333 -p 6334:6334 \
--network "container:$(hostname)" \
docker.io/qdrant/qdrant:latest
- name: Wait for Qdrant