Configuration Schemas
Field reference for Rugix Bakery's TOML configuration files.
Rugix Bakery uses TOML for its configuration files. These schemas describe the accepted fields and their types. Expand an object to inspect its properties. For the relationships between these files, start with the build model.
| Configuration | File | Schema |
|---|---|---|
| Project and systems | rugix-bakery.toml | Project |
| Layer | layers/<name>.toml | Layer |
| System mixin | mixins/<name>.toml | Mixin |
| Recipe | recipes/<name>/recipe.toml | Recipe |
| Rule definition | rules/<name>/rule.toml | Rule Definition |
| Rule invocation | An invocation file, a system’s rules table, or a named graph node | Rule Invocation |
| Repository | rugix-repository.toml | Repository |
| System test | tests/<name>.toml | System Test |
Tooling environments use envs/<name>/Dockerfile and that directory as their
build context. They have no separate Rugix Bakery TOML configuration.
Projects and Systems
A project declares repository dependencies and systems. Each system selects its
architecture, layer, and either predefined image settings or a build rule
invocation. Image layout types are included in this schema.
See Projects and Systems for examples.
ProjectConfigobject
Project configuration.
Properties
repositoriesobject
Additional properties
valueSourceConfig
Repository source.
Any of
option 1object
Properties
gitstringrequired
tagstring
branchstring
revstring
dirstring
option 2object
Properties
pathstringrequired
systemsobject
Additional properties
valueSystemConfig
Properties
layerstringrequired
mixinsarray<string>
Items
valuestring
architectureArchitecturerequired
Architecture.
amd64arm64armv7armhfarm
targetTarget
Target.
generic-grub-efirpi-trybootrpi-ubootbspunknown
imageSystemImageConfig
Properties
sizeNumBytes
Number of bytes.
layoutImageLayout
Layout of an image.
Properties
typePartitionTableType
Partition table type.
mbrgpt
raw-blobsarray<RawBlob>
Items
valueRawBlob
Raw firmware blob written at a fixed offset on the disk.
Properties
filestringrequired
offsetNumBytesrequired
Number of bytes.
sizeNumBytes
Number of bytes.
partitionsarray<ImagePartition>
Items
valueImagePartition
Partition of an image.
Properties
namestring
sizeNumBytes
Number of bytes.
filesystemFilesystem
Filesystem.
One of
option 1object
Properties
typeconst "ext4"required
ext4
additional-optionsarray<string>
Items
valuestring
clamp-mtimeTimestamp
Timestamp.
option 2object
Properties
typeconst "fat32"required
fat32
option 3object
Properties
typeconst "squashfs"required
squashfs
additional-optionsarray<string>
Items
valuestring
no-compressionboolean
rootstring
typePartitionType
Partition type.
bootableboolean
rulesobject
Additional properties
valueRuleInvocation
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
outputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
bundleSystemBundleConfig
Bundle encoding for the predefined pipeline.
Properties
enabledboolean
compressionboolean
chunkerChunkerAlgorithm
Bundle payload chunking algorithm, as defined by rugix-bundle.
optionsSystemOptions
Properties
use-squashfsSquashfsOptions
Properties
additional-optionsarray<string>
Items
valuestring
no-compressionboolean
Layers
A layer selects a parent or import source, recipes, parameter overrides, and optional rule prerequisites and recipe input bindings. Architecture-specific layer files use the same schema.
See Layers for examples.
LayerConfigobject
Layer configuration.
Properties
namestring
descriptionstring
categorystring
urlstring
parentstring
rootboolean
recipesarray<string>
Items
valuestring
excludearray<string>
Items
valuestring
rulesobject
Additional properties
valueRuleInvocation
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
inputsobject
Additional properties
valueobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueobject
Additional properties
valueParameterValue
Value of a parameter.
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
Mixins
A mixin applies additional recipes, parameters, and artifact bindings to a system after its selected layer. It can also declare dependencies on other mixins.
MixinConfigobject
Mixin configuration.
Properties
namestring
descriptionstring
dependenciesarray<string>
Items
valuestring
recipesarray<string>
Items
valuestring
excludearray<string>
Items
valuestring
rulesobject
Additional properties
valueRuleInvocation
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
inputsobject
Additional properties
valueobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueobject
Additional properties
valueParameterValue
Value of a parameter.
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
Recipes
A recipe defines root filesystem customization. It can declare parameters, artifact inputs, prerequisite rules, and default input bindings. Its step scripts live beside the configuration.
See Recipes for step execution and scheduling.
RecipeConfigobject
Recipe configuration.
Properties
descriptionstring
categorystring
priorityinteger | string (int64)int64
- pattern:
^-?[0-9]+$
beforearray<string>
Items
valuestring
afterarray<string>
Items
valuestring
dependenciesarray<string>
Items
valuestring
inputsobject
Additional properties
valueArtifactInput
An artifact input with optional documentation.
Properties
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
descriptionstring
rulesobject
Additional properties
valueRuleInvocation
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
input-defaultsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterDef
Recipe parameter definition.
Properties
descriptionstring
defaultParameterValue
Value of a parameter.
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
Rule Definitions
A rule declares an artifact interface and its implementation. An execution can
run a command, compose other rules, or build a layer. Each input definition is an
object with a required kind (file or directory) and an optional
description. Source bindings determine which artifact is supplied. A
composition’s rule-parameters declare operations that callers can replace.
See Build Rules for definitions and compositions.
RuleDefinitionobject
A reusable operation or composition.
Properties
descriptionstring
categorystring
inputsobject
Additional properties
valueRuleInput
An artifact input of a rule.
Properties
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
descriptionstring
defaultArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterDef
Recipe parameter definition.
Properties
descriptionstring
defaultParameterValue
Value of a parameter.
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsarray<string>
Items
valuestring
rule-parametersobject
Additional properties
valueRuleParameterDef
An operation that a graph calls through a fixed interface. The graph supplies the interface inputs and parameters at each call site and uses the interface outputs. Implementations may require additional inputs, parameters, and secrets, which the binding of the implementation supplies.
Properties
descriptionstring
inputsobject
Additional properties
valueArtifactInput
An artifact input with optional documentation.
Properties
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
descriptionstring
parametersobject
Additional properties
valueInterfaceParameter
A parameter supplied through a rule parameter interface.
Properties
descriptionstring
outputsobjectrequired
Additional properties
valueArtifactOutput
An artifact output with optional documentation.
Properties
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
descriptionstring
defaultRuleInvocationrequired
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
executionRuleExecutionrequired
Implementation of a reusable rule.
One of
option 1object
Properties
typeconst "run"required
run
envstring
commandarray<string>required
Items
valuestring
outputsobjectrequired
Additional properties
valueRuleOutput
A declared command output.
Properties
descriptionstring
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
pathstringrequired
cacheboolean
uses-source-date-epochboolean
uses-cache-dirboolean
option 2object
Properties
typeconst "graph"required
graph
rulesobjectrequired
Additional properties
valueRuleInvocation
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
outputsobjectrequired
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
option 3object
Properties
typeconst "layer"required
layer
layerstringrequired
architectureArchitecturerequired
Architecture.
amd64arm64armv7armhfarm
Rule Invocations
An invocation selects a definition with uses and binds its inputs,
parameters, secrets, and rule parameters. uses names a rule or, within a
composition, refers to one of its rule parameters with
{ rule-parameter = "name" }. Named entries in a composition’s rules table
and a system’s rules table use this structure.
Artifact sources include path for an existing repository-relative file or
directory, input for an enclosing input, rule for a node output,
select for a path inside a directory artifact, and tree for a directory
assembled from other sources.
See Bind Inputs and Secrets for examples.
RuleInvocationobject
An invocation of a repository-defined rule.
Properties
usesRuleReferencerequired
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding
An implementation bound to a rule parameter. Bindings resolve in the scope that contains them. The graph supplies the interface inputs and parameters, which a binding must not bind.
Properties
usesRuleReference
A rule name or the implementation of an enclosing rule parameter.
Any of
option 1string
option 2object
Properties
rule-parameterstringrequired
inputsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
parametersobject
Additional properties
valueParameterBinding
A literal parameter value or a reference to an enclosing parameter.
Any of
option 1object
Properties
parameterstringrequired
option 2any of
Any of
option 1string
option 2boolean
option 3integer | string (int64)int64
- pattern:
^-?[0-9]+$
option 4number | string
- pattern:
^(NaN|[+-]?Infinity)$
secretsobject
Additional properties
valueArtifactSource
An artifact reference within a composition.
One of
option 1object
Properties
inputstringrequired
option 2object
Properties
pathstringrequired
option 3object
Properties
ruleRuleOutputSourcerequired
Reference to a node output.
Properties
nodestringrequired
outputstringrequired
option 4object
Properties
selectArtifactSelectionrequired
A path within a directory artifact. Symlinks must resolve inside that directory.
Properties
sourceArtifactSource (cycle)required
pathstringrequired
kindArtifactKindrequired
Filesystem object accepted by an input or produced by an output.
filedirectory
option 5object
Properties
treeobjectrequired
Additional properties
valueArtifactSource (cycle)
rulesobject
Additional properties
valueRuleBinding (cycle)
Repositories
A repository declares its name, description, and dependencies on other
repositories. Definitions are discovered from its layers, recipes,
rules, and envs directories.
See Repositories for dependency configuration and naming.
RepositoryConfigobject
Repository configuration.
Properties
namestring
descriptionstring
repositoriesobject
Additional properties
valueSourceConfig
Repository source.
Any of
option 1object
Properties
gitstringrequired
tagstring
branchstring
revstring
dirstring
option 2object
Properties
pathstringrequired
System Tests
A system test declares systems to run and test steps. Tests can boot images in QEMU and interact with them through SSH.
See System Testing for examples.
TestConfigobject
Test configuration.
Properties
systemsarray<SystemConfig>required
Items
valueSystemConfig
System configuration for testing.
Properties
systemstringrequired
disk-sizeNumBytes
Number of bytes.
sshSshConfig
SSH configuration.
Properties
private-keystringrequired
stepsarray<TestStep>required
Items
valueTestStep
Test step.
One of
option 1object
Properties
actionconst "run"required
run
descriptionstring
scriptstringrequired
stdin-filestring
may-disconnectboolean
may-failboolean
option 2object
Properties
actionconst "wait"required
wait
descriptionstring
durationnumber | stringrequired
- pattern:
^(NaN|[+-]?Infinity)$
Schemas for Editors and Tools
The Rugix Bakery schema directory
contains JSON schemas generated from the configuration definitions. A TOML editor
with JSON Schema support can use a #:schema directive. For example:
#:schema https://raw.githubusercontent.com/rugix/rugix-bakery/main/schemas/rugix-bakery-rule.schema.json
Use a schema matching your Rugix Bakery version when pinning a project to a release.
The definition catalogs describe instantiated repository definitions for documentation and tooling. Their JSON output has its own schemas.