agents block.
A top-level block sets defaults for every command step in the pipeline. Add an agents block to an individual step to override those defaults for that step.
nsc-* tags below configure the Namespace instance created for the job.
Compute tags
See Machine Shapes for guidance on selecting resources.
Custom Linux base images
Linux jobs run in Namespace’s default Buildkite agent image. To run a job in your own container image instead, set thensc-base-image-ref agent tag to the image reference:
nscr.io and must be optimized before jobs use it. Optimization converts the image into a fast-booting disk variant; without it, every job has to pull the full image before it can start. Push the image, then optimize its digest with nsc base-image optimize:
nsc base-image upload.
A base image set with nsc-base-image-ref takes precedence over a base image configured on the queue.
macOS base images
For macOS images, it is possible to choose base image selectors with thensc-image-selectors agent tag. Multiple selectors may be separated by a comma. For example, to use a base image with Tahoe slim, include the agent tags
Linux on Apple Silicon
Linux on Apple Silicon is in early access. Reach out to enable it for your workspace.Contact support →
nsc-prefer-sku agent tag to m4pro, m5, or m5max to prefer an Apple Silicon machine for a Linux job.
Caching
Attach a Cache Volume to preserve dependencies and other build outputs across jobs. Jobs using the same cache tag access the same cache contents.NEVER still allow jobs to write to their local copy
of the cache, but those changes are not persisted.
Plugin caching
Namespace can cache Buildkite plugins in artifact storage so that later jobs can reuse plugin checkouts instead of cloning them again.Plugin caching is in early access. Reach out to enable it for your workspace.Contact support →
- Open Buildkite → Organizations in the Namespace dashboard and select your Buildkite organization.
- Click the toggle to enable Cache plugins.
resolve and create permissions for the necessary resultant artifacts.
To use pipeline caching for your pipeline or a single step, set the nsc-cache-plugins agent tag to true at the pipeline level or on an individual step:
nsc-cache-plugins: "false" on a step to override a pipeline-level opt-in.
Verifying signed Buildkite pipelines
Namespace-managed agents support verification of signed Buildkite pipelines with self-managed keys. To get started:- Follow Buildkite’s guide for setting up signed pipelines.
- During this process, you will create a public/private key pair. Save the resulting public key set (the entire contents
of the resulting
<key>-public.jsonfile as a secret in Namespace, using either the Vault dashboard or CLI command
sec_<my-secret-id>.
- Update the agent tags in your Buildkite pipeline:
Additional tags
Use these tags to configure repository mirrors, container storage, the Linux agent container, and local Docker builders.
The
nsc-features tag accepts a comma—separated list of feature assignments. Some examples are shown below.
Enable the Git mirror, container image cache, and privileged containers together:
nsc-features assignments into one comma-separated value when a job needs more than one feature. For example, to use a local Docker builder with a persistent 50 GB cache: