Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven Spring Boot connection? #6

Closed
jnxzu opened this issue Jan 10, 2020 · 0 comments
Closed

Maven Spring Boot connection? #6

jnxzu opened this issue Jan 10, 2020 · 0 comments

Comments

@jnxzu
Copy link

jnxzu commented Jan 10, 2020

Github action for maven spring boot fails on "Build with maven" with error:

org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

My application.properties regarding the connection are:
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres spring.datasource.driverClassName=org.postgresql.Driver spring.datasource.username=postgres spring.datasource.password=admin

My maven.yml:

steps: - uses: actions/checkout@v1 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - name: Build with Maven run: mvn -B package --file pom.xml - name: Setup PostgreSQL uses: Harmon758/postgresql-action@v1.0.0 with: postgresql db: postgres postgresql user: postgres postgresql password: admin

Everything works correctly when ran locally of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant