Git deploy and CI/CD

Available

Link an app to a repository and every push to its branch deploys. A failed check stops the release and leaves the running version alone. Add a staging copy, or run your own CI runners on your server.

What it does today

  • GitHub: a private GitHub App made in one click. Clones use one-hour tokens, so nothing runs out. A personal token also works.
  • GitLab, on gitlab.com or self-managed: the panel opens GitLab's token page already filled in, and renews the token two weeks before it runs out.
  • Gitea and Forgejo: sign in once, with the 6-digit code if two-step sign-in is on. The panel keeps a token and never your password. Pasting a token also works.
  • Bitbucket Cloud: an Atlassian API token with scopes. The form lists the boxes to tick.
  • Deploy on push: linking an app adds the webhook at the Git host for you, and a push to the app's branch deploys that commit. Pushes to other branches, tags and deleted branches are ignored, and a request with a bad signature is refused and logged.
  • Every deploy is reported to the Git host against the commit it builds, with a link that opens the deploy in the panel.
  • Checks before release: an ordered list in respirecloud.yaml or the app's settings, up to 20 steps with a time limit each (600 seconds by default). The first failing check stops the deploy, the running version is untouched, and the Deploys tab names the check and shows its output.
  • Folders kept between builds, so the next deploy starts with its dependencies in place.
  • A staging copy of an app: its own branch (staging by default), address and deploy key, with the settings copied. Promote staging to production, and both steps show their plan first.
  • Your own CI runners: a GitHub Actions runner, a Gitea act_runner or a GitLab Runner, started as a container inside the account's own limits. The registration token is used once and not kept. Update moves a runner to the newest tested image and keeps its registration.
  • A token that is about to run out or stops working raises a notice with a button to fix it, and connections are rechecked every day, so a revoked token shows before a deploy needs it.
  • Rotating an app's webhook secret updates the Git host too, and the old webhook is removed only after the new one is in place.

Not there yet

  • Pull request previews.
  • A ready-made GitHub Action and GitLab CI template for a deploy step: both are built and not published yet.

What a push does

The webhook reaches the panel, the panel checks its signature, then the app builds the pushed commit, runs your checks, and swaps the release only when everything passes. The previous release stays in place for a way back.

Every action in this area is in the panel, one keystroke away in the command palette (Ctrl K), on the command line and in the API, and most changes can be previewed as a plan first. RespireCloud is released and installs on your own server today.

Modules in this area

Further reading