socialgouv/buildkit-operator build

Build a container image via buildkit-operator: route to the project's hot buildkitd and build with buildx remote over mTLS (warm cache, optional S3 cold cache, monorepo-aware).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
buildd-urlbuildd /route API URL (LoadBalancer/Ingress).yes
caClient mTLS CA (PEM).yes
certClient mTLS certificate (PEM).yes
keyClient mTLS private key (PEM).yes
tokenFallback credential for the /route API when OIDC isn't used: a legacy bearer token, OR a break-glass admin token (see admin-token). Leave empty when buildd enforces OIDC (the recommended setup) — the action mints a GitHub OIDC token automatically. Requires the caller job to set permissions.id-token: write.""
admin-tokenBreak-glass admin token (sent in the X-Buildkit-Operator-Admin-Token header) — bypasses OIDC. For ops only.""
oidc-audienceAudience for the GitHub OIDC token minted for buildd /route auth. Must match buildd's provider audience. Empty = don't mint (use token/admin-token).buildkit-operator
tagsImage tag(s), whitespace-separated (e.g. ghcr.io/org/app:sha).yes
repoProject identity = the cache key. Defaults to the GitHub repository. IGNORED when buildd enforces OIDC (the verified repo claim is authoritative); used only on the legacy/admin path.${{ github.repository }}
nameOptional monorepo component — gives each image its own daemon + cache.""
archBuild architecture: amd64 | arm64.amd64
contextBuild context path..
fileDockerfile path (default: Dockerfile in the context).""
targetDockerfile target stage.""
build-argsBuild args, one KEY=VALUE per line (forwarded to buildx as --build-arg).""
labelsOCI image labels, one key=value per line (forwarded to buildx as --label).""
secretsBuild secrets, one id=value per line (forwarded to buildx as --secret id=���,env=…). Sent over the build session only — hashed into the cache key, never stored in a layer, the cache, or the image config.""
untrustedUntrusted (fork-PR) build: route to an ephemeral daemon, no write-back to the shared cache (anti cache-poisoning).false
pushPush the result to the registry.false
gateway-hostOptional: the gateway's public domain (e.g. bkod.example.com). When set, the daemon endpoint is reached at buildkitd-<key>.<gateway-host> over real wildcard DNS — preferred over gateway-ip (IP-independent, survives a gateway LB IP change).""
gateway-ipOptional: gateway LoadBalancer IP, to map the gateway hostname for this run when there is no wildcard DNS yet (testing/bootstrap). Prefer gateway-host when wildcard DNS exists.""
provenanceSLSA provenance attestation, e.g. 'mode=max' (needs push: true). Empty = off.""
sbomGenerate an SBOM attestation (needs push: true).false
signcosign keyless-sign the pushed image. Requires push: true and the caller job to set permissions.id-token: write.false
namedescription
digestImage digest (sha256:...) of the build result. Populated when push: true.