Test Auto DevOps with java spring boot app
Problem to solve
Per internal conversation, there may be additional steps required before one can use auto devops with java spring boot & postgres db.
Further details
user reports this gitlab-ci.yml change
- auto_database_url=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${CI_ENVIRONMENT_SLUG}-postgres:5432/${POSTGRES_DB}
+ auto_database_url="jdbc:postgresql://${CI_ENVIRONMENT_SLUG}-postgres:5432/${POSTGRES_DB}?user=${POSTGRES_USER}&password=${POSTGRES_PASSWORD}&sslmode=disable"
and this application.properties change on the java spring boot app file:
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url=${DATABASE_URL}
spring.datasource.username=user
spring.datasource.password=testing-password
worked for getting auto devops up and running
Proposal
Test auto devops with java spring boot app.