Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Deploy
  3. How deploys work

How deploys work

The deploy paths Cipi supports and when to use each.

Deploy

Every deploy runs the same pipeline on the server. What changes is who starts it: a push to Git, your CI, you, the panel or an AI agent.

The pipeline#

Step 1 of 5Trigger

A deploy can start from a git push (webhook), a CI pipeline, cipi deploy on the server, the web panel, the API or an AI assistant through MCP. All take the same path.

Choose a trigger#

Push to deploy (webhook)CI/CD pipeline over SSH
Starts whenYou push to the app's branchYour pipeline's deploy job runs
CI needs server accessNo: only HTTPS to the appYes: a dedicated SSH key as a CI secret
Tests before deploySeparate (the push deploys anyway)Built in: deploy only if tests pass
SetupOne webhook, created for youSSH key, secrets, workflow file
Best forMost appsGated releases, backups, review apps
You want…UseRead
Push main, it's liveWebhookAuto-deploy on push
Deploy only if tests passPipeline (turn the webhook off)CI/CD pipelines
Backup before every releasePipeline, or the built-in snapshotSafe deploy
A live URL per branchPipelinePreview environments
Slack/Telegram on every deployEitherDeploy notifications

One trigger per app. A webhook and a pipeline deploying the same push will collide on the deploy lock.

Questions#

QuestionAnswer
What if two deploys start at once?A lock lets one run; the other waits or reports the lock. cipi deploy myapp --status shows it.
Can I see who deployed?cipi deploy myapp --audit shows the audit ledger.
How do I go back?cipi deploy myapp --rollback switches to the previous release instantly.