Skip to content

Configuring preview environments in Tempest recipes

To deploy this Recipe to specific environments, you’ll need to create a new environment and configure Resources under them.

  1. Click Add Environment.
  2. Name the environment and select Preview for the environment type.
  3. Review the configuration.
  4. Click Create Environment.

In this example, a preview environment will be provisioned when a pull request opens and deprovisioned when it closes.

Add a preview environment to your recipe

This creates a new environment for your Recipe. Every Project created with this Recipe will automatically include configured Preview environments.

To ensure the Preview environment deploys correctly, you’ll need to configure additional resources under this environment. To add Build Trigger and Run Service resources:

  1. Click the “+” next to the environment name and select Google Cloud.
  2. Click Build Trigger.

Repeat these steps for Run Service and configure both resources according to your organization’s requirements.

Configure a Build Trigger and Run Service for your recipe

After adding all the resources to your Recipe, click Publish Recipe to share it with your organization’s engineers.

Keep in mind, creating a Recipe doesn't provision any resources—it simply sets up a template for developers to self-serve the infrastructure they need for their projects.

Once published, your Recipe will appear in the Projects -> Discover tab, where developers can use it to create and deploy new Projects.

View your published recipe