Rock8Cloud
Guides

Preview Deployments

Automatic preview environments for every pull request

Every pull request can get its own live environment with a unique URL, so you can test changes before merging.

How It Works

  1. You open a pull request on GitHub
  2. Rock8Cloud builds and deploys a preview environment
  3. A preview URL is available (e.g., https://your-service-pr123.apps.rock8.cloud)
  4. Push more commits → the preview updates automatically
  5. Close or merge the PR → the preview is cleaned up

Configuration

The Preview Deployments workflow is enabled by default. To adjust:

  1. Open the service Workflows tab
  2. Find the Preview Deployments workflow
  3. Configure source branch patterns (defaults to feat/*)
  4. Configure target branch if needed (defaults to the service's default branch)

See Workflows for the full configuration reference.

Environment Variables

Preview deployments use the same environment variables as your stable deployment. If you need isolated databases or API keys for previews, create a separate project.

Cleanup

Previews are automatically removed when the pull request is closed or merged. No manual cleanup needed.

Troubleshooting

ProblemSolution
No preview createdCheck the workflow is enabled and branch patterns match
Preview not updatingVerify new commits triggered a synchronize event
Preview not removedCheck the cleanup job status in the Jobs tab

On this page