SDK
The Ocuroot SDK
Managing your build and deployments with the Ocuroot SDK
With Ocuroot, you can configure builds and deployments right in your source repo
with config files written in Starlark.
These config files all have the extension .ocu.star
.
The Ocuroot SDK is a collection of Starlark modules that power your configuration files.
Functions and structs provided by the SDK are imported using the load
function.
For example, to import json
and yaml
functions from the encoding
module:
You can find a set of stubs for each module in the GitHub repo ocuroot/sdk.
There are two key kinds of config file.
- repo.ocu.star - Global configuration for a Git repository.
- package.ocu.star - Configuration for a specific package within a repository.