Deploy only on green CI?

Hi Kevin_Brown,

Yep! Deploy hooks would work for this. The other option is to have a separate branch that you merge to whenever a commit passes CI. Then your Render service could track that ci-passed branch.

I have a production branch for this. When master/main passes all checks, it automatically pushes to production. And Render is set to sync with production.

What’s nice about this setup is that it’s platform-independent (e.g.works just as fine in Heroku) and in emergencies you can push directly to production in order for Render to pick it up. You’ll also always know what code is currently running on production.

2 Likes