diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 1349fd2..8ed526b 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -49,12 +49,16 @@ jobs: docker run -d --name postgres-it --network ${DOCKER_NET} -e POSTGRES_PASSWORD=password postgres || true docker run -d --name redis-it --network ${DOCKER_NET} redis || true + POSTGRES_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' postgres-it) + REDIS_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' redis-it) + ./scripts/gen-it.sh ./mvnw -B verify \ -Dquarkus.container-image.push=false \ - -Dquarkus.test.container.network=${DOCKER_NET} \ - -Dquarkus.test.arg-line="-Dquarkus.datasource.jdbc.url=jdbc:postgresql://postgres-it:5432/postgres -Dquarkus.redis.hosts=redis://redis-it:6379" + -Dquarkus.test.container.network=${DOCKER_NET} + -Dquarkus.datasource.jdbc.url=jdbc:postgresql://${POSTGRES_IP}:5432/postgres \ + -Dquarkus.redis.hosts=redis://${REDIS_IP}:6379 - name: Clean up Docker containers if: always() diff --git a/account-service/src/main/resources/application.properties b/account-service/src/main/resources/application.properties index 3964779..3e82c76 100644 --- a/account-service/src/main/resources/application.properties +++ b/account-service/src/main/resources/application.properties @@ -1,8 +1,5 @@ # Database quarkus.datasource.db-kind=postgresql -quarkus.datasource.username=postgres -quarkus.datasource.password=password -quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/postgres quarkus.hibernate-orm.database.generation=update