This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user