Pilot pricing in Lagos: servers from ₦10 an hour, Spaces from ₦6,750 a month →
Docs menu

Docs / Apps

Deploy on push

4 minute read

Every push to your app's branch can build and deploy a new version. Apps created from GitHub do this already; for GitLab or CI, add the app's webhook.

1. Find the webhook URL

Open the app and go to Settings → Deploy on push. Copy the private webhook URL. It looks like this:

https://console.simplicloud.ai/api/v1/webhooks/apps/2c41…/••••••••
Anyone with this URL can trigger a deploy. Treat it like a password. Rotate it from the same screen if it leaks.

2. Add it to GitHub or GitLab

  • GitHub: Repository → Settings → Webhooks → Add webhook. Paste the URL, set the content type to application/json and choose Just the push event.
  • GitLab: Settings → Webhooks. Paste the URL and tick Push events.

Only pushes to the branch in the app's build settings deploy. Pushes to other branches are ignored.

3. Deploy from CI instead

To deploy only after tests pass, leave the webhook out of the repository and call it from your pipeline:

.github/workflows/deploy.yml
name: deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm test
- run: curl -fsS -X POST "$DEPLOY_HOOK"
env:
DEPLOY_HOOK: ${{ secrets.SIMPLICLOUD_DEPLOY_HOOK }}

Or use the CLI with an API key: simplicloud apps deploy storefront.

4. Follow and roll back

Each deploy appears on the Deployments tab with its commit and status.

Terminal
simplicloud apps deploys storefront
simplicloud apps rollback storefront b81e9a0
StatusMeaning
BuildingThe new version is being built. You can cancel it.
LiveThis version is serving traffic.
FailedThe build or health check failed. The previous version kept serving.
ReplacedA newer deploy took over. Pick Roll back to this to serve it again.
Was this page helpful?

Related guides

Deploy on push · Docs · SimpliCloud