From b514a3f229c26c839edd29492e47c200a4e88e55 Mon Sep 17 00:00:00 2001 From: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Date: Thu, 16 Apr 2026 03:29:55 +0000 Subject: [PATCH] chore: update --- .gitea/workflows/test.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 6eea06b..0a12c2b 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -58,13 +58,20 @@ jobs: echo "PostgreSQL IP: ${POSTGRES_IP}" echo "Redis IP: ${REDIS_IP}" + docker network connect ${DOCKER_NET} $(hostname) + + RUNNER_IP_IN_NET=$(docker container inspect $(hostname) -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}') + + echo "Runner IP: ${RUNNER_IP_IN_NET}" + ./scripts/gen-it.sh ./mvnw -B verify \ -Dquarkus.container-image.push=false \ -Dquarkus.test.env.QUARKUS_TEST_CONTAINER_NETWORK=$(docker network inspect -f '{{.Id}}' ${DOCKER_NET}) \ -Dquarkus.test.env.QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://${POSTGRES_IP}:5432/postgres \ - -Dquarkus.redis.hosts=redis://${REDIS_IP}:6379 + -Dquarkus.redis.hosts=redis://${REDIS_IP}:6379 \ + -Dquarkus.http.test-host=${RUNNER_IP_IN_NET} - name: Debug Quarkus Integration Test Logs if: failure() @@ -82,5 +89,6 @@ jobs: - name: Clean up Docker containers if: always() run: | + docker network disconnect ${DOCKER_NET} $(hostname) docker ps -a --filter network=${DOCKER_NET} -q | xargs -r docker rm -f docker network rm ${DOCKER_NET}