Skip to content

Deploy from Git

Connect a repository so every push deploys and production follows a branch.

Applies to EngineCloud
View as Markdown
On this page
  1. Connect a repository
  2. What happens on a push
  3. Settings
  4. Without connecting

Connect a repository once; then a push to the production branch deploys to production, and any other push deploys a preview.

Connect a repository

HostHow
Sypnia Gitrun git connect sypnia:<org>/<repo>: no app to install
GitHubrun git connect github:<owner>/<repo>: installs the Sypnia GitHub App on the repository, with read access to code and write access to checks and deployments
Terminal
npx @sypnia/run git connect github:laespiga/web --production-branch main

What happens on a push

Push toResult
the production brancha build; when it passes, production moves to the new deploy
another branch with an open pull requesta build and a preview; the pull request gets a comment with its address
any other brancha build and a deploy reachable at its own address, if branches allows it

A check run on the commit says building, ready or failed, with a link to the logs.

Settings

  • production.branch: which branch is production (default main).
  • production.auto: false makes production deploys wait for run promote.
  • ignore: paths that do not trigger a build (docs/**), for monorepos.
  • root: the app’s folder in a monorepo.

Without connecting

The CLI deploys a folder from any CI: npx @sypnia/run deploy --env production --token "$SYPNIA_RUN_TOKEN", with a deploy token.

  1. Connect a repository
  2. What happens on a push
  3. Settings
  4. Without connecting

    Search pages, sections and terms