Preview Deployments

I went into the settings of a service and set PR Previews to “Automatic”.
I’ve created a PR in the connected github repo but I don’t see anything happening.
I did not follow the instructions at Service Previews – Render Docs (e.g. I do not have a Blueprint) but still, there is a setting available for this in the UI so I expected something to happen.
Please help.

1 Like

i am having the same issue, i tried with both “Manual” and “Automatic”. deploys from the main and staging branches are configured and working correctly, but i’d like to set up PR previews as well and not sure why this isn’t working!

the linked doc page doesn’t actually say anything about setting up blueprints :thinking:, and i seem to have followed all steps correctly!

There seem to be two related concepts:
“Preview environments” - requires a Blueprint.
“Preview service” - configurable on a service, not related to Blueprints.

FWIW I ended up spinning up my own “preview” services via API from GitHub Actions.

1 Like

i figured out my issue, i was creating preview PRs from the staging environment (because i wanted them to use staging env variables). but because the staging environment builds off the staging branch, it means the previews only run on PRs that are opened against the staging branch.

i haven’t yet figured out how to do exactly what i want: run previews on all PRs, regardless of what branch they are based on, but always use the staging environment for env variables.

if you have a second to help me out pasha: when you say you’re spinning up “preview” services via API, is there a render API endpoint to create preview deploys or is “preview” in quotes because you’re using some other mechanism and just treating them as preview deploys?

Yeah I’m spinning up a normal separate service.
It’s preview only in my context.

Pasha