Zeabur Builderv1alpha1

Push a commit, get an image digest.

Zeabur Builder is a Kubernetes operator that builds container images from Git with BuildKit. Each new commit is built once and pushed to your registry, and the image goes into status.latestImage for your rollout tool.

It builds images, your rollout tool deploys them.

From ref to digest, every step is a Kubernetes object.

  1. Resolve the ref

    The controller resolves the Build's ref to a commit over Git's smart HTTP or SSH protocol.

  2. Build

    A new commit gets a BuildRun and a Job. The Job runs buildctl against its namespace's buildkitd and needs no privileges.

  3. Push

    The image is pushed, and its digest and tags land in the BuildRun and the Build.

When it builds

TriggerHow it worksSetup
PollingThe controller asks the Git server for the ref every minuteNone; spec.triggers.pollInterval changes it
Push webhooksGitHub, GitLab, Gitea, Forgejo, Bitbucket and Standard WebhooksEnable webhooks in the chart, one secret per Build
GitHub AppPrivate repositories with a short-lived installation token, and a commit status per commitA cluster admin creates the App once
By handA new value in the builder.zeabur.com/rebuild annotation rebuilds the current commitspec.suspend stops automatic builds

One Build per repository

A Build names a Git repository and a builder. Leave out ref to follow the default branch; status.resolvedRef says which branch that was.

apiVersion: builder.zeabur.com/v1alpha1
kind: Build
metadata: {name: whoami, namespace: team-a}
spec:
  source: {git: {url: https://github.com/traefik/whoami}}
  builderRef: dockerfile