In the docs, Pull Request Previews | Render it says: “Make sure to change environment variables on your PR instance if you want it to use a staging or test databas”
Can I do this automatically with some config files or hooks? I want to have two environment groups, one for production and one for development, all the PR previews should use the dev group.
Our workflow is pretty simple
Developer works on a feature on a branch
When he is happy he creates a Pull Request
Render should spin up the pull request BUT use a dev database.
The flow you described sounds like a Preview Environment, which will spin up new copies of all services (e.g. a Web Service, a Postgres instance and a Redis instance) defined in the Blueprint/render.yaml when a PR is raised.