tabbify.io
Documentation
Product directionEDGE BOX
ReferenceArchitecture

The deploy pipeline

Tabbify accepts the same remote deployment from two entry points: a GitHub workflow or manual tcli deploy --remote. Both submit source coordinates to the node asynchronously. The node clones the selected revision, builds an OCI image, stores it in the platform registry, selects one eligible workload target, and boots a CPU-only Firecracker runner. Public ingress reaches the application at its own host https://<slug>.tbfy.app/ or a configured custom domain.

The remote path does not build or push the image on your laptop. See the quickstart for the GitHub walkthrough; this page is the in-depth version for both entry points.

GitHub trigger

The tabbify-io/deploy GitHub Action can run on every push and submit the remote deploy for you:

- uses: actions/checkout@v4
- uses: tabbify-io/deploy@v1
  with:
    token: ${{ secrets.TABBIFY_TOKEN }}

The action installs tcli and runs tcli deploy --remote. Two pieces of auth flow through it, and they are different things:

  • token is your TABBIFY_TOKEN — the bearer credential the node checks on POST /v1/deploy. It is a join token for your environment: mint it in the console under Workspaces (pick an environment → Settings → Tokens → Mint join token → Copy; shown once), then add it once as a repository secret.
  • clone-token defaults to the Action's automatic ${{ github.token }} — a per-run, repo-scoped token the node uses to git clone your repo. There is no GitHub App to install and no webhook to register; the clone token lives on the build host and never enters the build guest.

What the node does

tcli deploy --remote posts the repository URL, git ref, clone token, tenant, manifest, and optional selected target. The node acknowledges with a deploy ID and continues asynchronously:

1. resolve the in-mesh registry (registry ULA from the roster)
2. resolve a builder supervisor (from [build].builder, the request, or the roster)
3. select one eligible workload target, using the requested supervisor or default
4. clone the repo at the pushed ref (using the clone token) and build an OCI image
5. push the image to the in-mesh Zot registry (/v2)
6. start one Firecracker runner on the selected target at derive_app_ula(uuid)
7. apply the configured health gate before activation

Because the response is async, you poll for the outcome:

GET /v1/deploy/<deploy_id>/status   # 202 while pending, 200 with the result

The app UUID is stable for the deployment source. The CLI prefers an explicit --app-uuid, then [app].id in tabbify.toml, and finally falls back to uuid_v5(NAMESPACE_URL, repo_url), so the same repository keeps its address across pushes. If the manifest has no [[deploy]] block, the node selects the default eligible supervisor.

One runtime: Firecracker

Tabbify ships a single public runtime. Every app is built from a Dockerfile into an OCI image, converted to an ext4 rootfs, and booted as a Firecracker microVM running the image's entrypoint. [build].kind = "docker" describes the OCI build; runtime-selection keys in older manifests are inert. See Runtimes for the full story.

The target is capability-checked against the supervisor's roster tags before any dispatch: a supervisor must carry the firecracker tag to receive a runner, and a build-only host is not handed an app it cannot boot.

Deploying from your own terminal

The GitHub Action is just a wrapper. You can run the exact same pipeline from any terminal with tcli:

tcli deploy --remote \
  --repo-url https://github.com/tabbify-io/quickstart \
  --ref main \
  --clone-token "$GITHUB_TOKEN"

tcli reads TABBIFY_TOKEN for the node bearer auth and posts to https://api.tabbify.io/v1/deploy by default. Or hit the endpoint directly with your Tabbify API token:

curl -X POST -H "Authorization: Bearer $TABBIFY_TOKEN" \
  https://api.tabbify.io/v1/deploy \
  -d '{"repo_url":"https://github.com/tabbify-io/quickstart",
       "git_ref":"main","tenant":"tabbify",
       "app_uuid":"0191e7c2-1111-7222-8333-444455556666",
       "clone_token":"<github-token>",
       "manifest_toml":"[app]\nname=\"quickstart\"\n[build]\nkind=\"docker\"\n[routes]\ndynamic_prefixes=[\"/\"]\n",
       "targets":[{"supervisor":"thinkpad"}]}'

manifest_toml carries your raw tabbify.toml so the node applies [runtime] (including [[runtime.ports]]) and [routes] on spawn. Omit it and the app gets the defaults, with the port the image EXPOSEs. tcli deploy sends this for you; only a hand-rolled curl needs it explicit.

Build, target resolution, capability, registry, spawn, and health failures are reported in deploy status. See the registry for the artifact store and auth for how tokens are issued.

Where it lands: the runner

The pipeline terminates at a runner. supervisord is pure control plane: it spawns a detached tabbify-runner, applies the configured health gate, and hands back the app_ula. The address is derived from the app UUID and its instance generation, not from the host. Redeploys keep it; moving an app to another host starts a new generation with a new address, and the public route follows it automatically.

You can inspect the live mesh from the node:

curl -H "Authorization: Bearer $TABBIFY_TOKEN" \
  https://api.tabbify.io/v1/topology

That topology view is for visibility only — addressing is always the UUID hash. A supervisor also exposes POST /v1/apps/{uuid}/start for advanced or manual control, but in the normal GitHub Actions flow the deploy pipeline starts the runner on the selected supervisor; you do not call it by hand.

Status and release limits

The status operation reports the current phase, elapsed time, health outcome, and, when present, a bounded tail of local application output. The tail is for diagnosis and is not durable platform logging.

The platform does not currently provide an automated rollback operation or a durable deployment history. To recover, submit a known-good source revision as a new deployment and follow its status. Passing the candidate health gate reduces risk, but it is not a guarantee that a release will be uninterrupted.

Reading deploy status

deploy_status (MCP) answers one of:

  • pending - the pipeline has not reported yet;
  • progress - with phase (build or spawn), elapsed_secs, typical_secs (a typical duration, not a timeout) and the live log_tail. Keep polling; do not deploy the same app again while one deploy runs;
  • done - the new version passed its health check and is serving;
  • failed - with stage, the step that failed: resolve, clone, manifest, build, push, spawn, or health. error names the cause for a fault in your repository (manifest, Dockerfile, compiler output) or an incident id for a platform fault; log_tail is the end of the build log and build_log returns the whole failed build.

Failed at health means the new version was built and started but the platform did not confirm it as healthy within its readiness window: the process did not answer on its declared port, exited, or the supervisor could not report on it. When the new version is started next to the old one (a swap), a failed health check leaves the previous version serving; when the old version had to stop first, the app can stay down until a deploy succeeds.

last_deploy_error (in list_apps and the app view) is the error of the app's most recent failed deploy. A later successful deploy clears it.

Known issue: a deploy can end failed at health with a message about an unreachable control socket even though the new version came up and serves, and the stale error can stay visible afterwards. Before acting on a health failure, check get_app: if the app reports running and serves the new version, the deploy took effect.

Sources: how an app is connected to its repository

An app has a source - a repository, branch, manifest path, and auto-deploy setting - only when it was created from a repository:

  • create_app_from_repo connects a repository and deploys it. If that repository already has the app (same name, or its only app), it redeploys that app instead and answers created: false. A repository with several manifests needs manifest_path; a second app of the same repository needs its own name.
  • app_source_set changes the branch, manifest path, or auto_deploy of an app that already has a source. It does not attach a repository.
  • app_source_detach removes the connection; the app keeps running what it runs, and new commits no longer deploy it.
  • app_action with redeploy rebuilds from the app's own source (it reuses the commit's built image unless rebuild is true).

An app deployed from an image or with tcli deploy has no source. redeploy refuses it with "has no source to rebuild from". Deploy it again the way it was first deployed. Attaching a repository to such an existing app is not available as a separate action.

See the runtime for the runner lifecycle, routing for the address scheme, and the CLI reference for tcli.