Getting Started with Previewops
Previewops automatically deploys pull-request previews to your cloud account. Comment /deploy-previewops on any PR and the bot builds your Docker image, deploys it, and replies with the live URL — all within minutes.
How it works
- You (or a teammate) comment
/deploy-previewopson a pull request. - Previewops builds a Docker image from the PR branch (via Cloud Build, SSH, or your provider's native build, depending on configuration).
- The image is deployed to your chosen cloud provider (Cloud Run, Fly.io, Hetzner, etc.).
- Previewops posts a comment on the PR with the preview URL.
- When the PR is merged or closed, Previewops deletes the preview automatically.
- Previews also expire automatically after their TTL (default: 24 hours).
Prerequisites
- GitHub App installed on your organisation or repository. Install Previewops →
- Cloud credentials stored (required for Free and Premium BYOC plans). See credentials.md.
- A Dockerfile in your repository root (or configured via
.previewops.yaml).
Your first deploy
Step 1 — Install the GitHub App
Go to the Previewops GitHub App page and install it on your organisation or the specific repositories you want to enable.
Step 2 — Store your cloud credentials (BYOC plans)
If you are on the Free or Premium BYOC plan, you need to add your cloud provider credentials before your first deploy. See credentials.md for a step-by-step walkthrough.
Pro, Enterprise, and Custom plan users can skip this step — Previewops handles the cloud account for you.
Step 3 — Open a pull request and deploy
Comment on any open PR in an enabled repository:
/deploy-previewops
Previewops will reply with a "building…" comment, then update it with the live preview URL once the deploy completes (typically 2–5 minutes depending on build time).
Step 4 — (Optional) Configure per-repo settings
Add a .previewops.yaml file to the root of your repository to customise TTL, concurrency, the Dockerfile path, and more. See configuration.md for all available options.
Next steps
- commands.md — Full command reference (
/deploy-previewops,/delete-previewops,/validate-previewops,/qa-previewops,/perf-previewops) - qa-testing.md — AI code review, test coverage mapping, and HTTP smoke tests with
/qa-previewops - performance-testing.md — Run k6 load tests against your preview with
/perf-previewops - add-ons.md — Optional add-ons: Advanced Perf (longer tests, baselines) and Custom LLM (BYOC LLM key)
- configuration.md —
.previewops.yamlschema and runtime options - databases.md — Connecting a database to your preview container, credential safety, and migrations
- authentication.md — JWT, OAuth, session cookies, and HTTPS in preview environments
- credentials.md — How to add and manage cloud credentials
- plans.md — Plan comparison, caps, AI QA features, and how to upgrade
- providers/ — Per-provider setup guides
- self-hosting.md — Run your own Previewops instance