VxCloud
Docs/Guides/CI/CD
🚀CI/CD

Zero-downtime deploys with one-click rollback

The CI/CD tab gives you stages, approvals, blue-green switches, and full deployment history. Every step is recorded in the audit log; rollback is a button click on any prior session.

20 minIntermediateCI/CDBlue-greenProduction
Pick how you want to follow along

In the dashboard (UI)

Dashboard → CI/CD → "New Pipeline". You build the pipeline as a sequence of stages; each stage is a vxcli deploy invocation under the hood, with environment-specific configuration.

1

Create the pipeline

Name the pipeline (e.g. "my-api-pipeline"), point at the source repo, and pick a trigger — push to a branch, tag, or manual.

2

Add a build stage

The Build stage runs your CI step (npm test, pytest, go test, etc.) inside a fresh container. Cache is keyed by lockfile hash. If tests fail, the pipeline halts before any deployment.

3

Add staging deployment

The Deploy → Staging stage uses the same Development wizard config you used for the original deploy, but in environment="staging". Traffic is automatic — staging gets all of it.

4

Add a manual approval gate

Before production, drop in an Approval gate. The pipeline pauses; whoever has the role "Production Deployer" gets a Slack/email ping with a one-click Approve button. Audit log records who clicked.

5

Configure blue-green for production

In the Production stage, toggle Strategy = Blue-Green. VxCloud spins up the new version on parallel infrastructure, runs the configured smoke-test, then atomically switches the load balancer. Old version stays warm for 15 minutes for instant rollback.

6

Push to trigger

A push to the configured branch fires the pipeline. The pipeline view shows each stage as it runs with live logs. On any failure, the pipeline halts and pings the configured channel.

7

Rollback if needed

On the Production stage card, every successful past deploy has a "Rollback to this" button. Click → traffic flips back in seconds → audit log records the rollback.

Stuck halfway through? Email [email protected] — most replies land within an hour during weekdays.

All guides

Was this page helpful?