Create preview environments only for specific PRs

Hello :wave:

Is there a way to create preview environments only for certain PRs? For example, only for the ones containing a specific string.

I thought it was possible with a deployment rule that targets the preview environments – based on something I heard in a Qovery live session or demo day.

Here is the config I tried out:

Blueprint environment:

Deployment rule:

Is there a way to achieve what I want? :slight_smile:

Thanks in advance!


Hello Pierre,
For now, the deployment rules do not allow to pilot if it is triggered or not but only to apply an automatic start/stop. The behavior you expect is a feature we plan to add.

A solution could be to use GitHub action with a PR name filter to create your environment when needed.

Please let me know if you need further help.

Do you have a guide how to easily trigger new environments from GitHub actions?

We don’t have a specific guide for this behavior but a get-started one.

Adding a step to create the environment before deploying services on it should work.