Type object
File match .drone.yml
Schema URL https://catalog.lintel.tools/schemas/schemastore/drone-json/latest.json
Source https://www.schemastore.org/drone.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

kind enum required
Values: "signature" "secret" "template" "pipeline"

One of

1. kind_signature object
2. kind_secret object
3. kind_template object
4. variant

Definitions

nonEmptyString string
platform object
os string
Values: "linux" "windows" "darwin" "freebsd" "netbsd" "openbsd" "dragonfly" "solaris"
arch string
Values: "arm" "arm64" "amd64" "386"
variant string
version string
commands nonEmptyString[]
environment Record<string, string | number | boolean | secret>
condition string[]
conditions condition | object | object
allConditions object
branch condition | object | object
cron condition | object | object
event condition | object | object
paths condition | object | object
ref condition | object | object
repo condition | object | object
status string[]
target condition | object | object
instance condition | object | object
volumes object[]
services object[]
secret object
from_secret string required
stringOrSecret nonEmptyString | secret
node Record<string, string>
concurrency object
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind_signature object
hmac string required
minLength=40maxLength=64
kind const: "signature"
Constant: "signature"
kind_secret object
name string required
minLength=1
kind const: "secret"
Constant: "secret"
data string
get object
2 nested properties
path string required
minLength=1
name string required
minLength=1
kind_template object
load string required
data object
kind_pipeline object
name string required
minLength=1
type enum required
Values: "docker" "kubernetes" "ssh" "exec" "digitalocean" "macstadium" "vm"
steps array required
minLength=1
kind const: "pipeline"
Constant: "pipeline"
platform object
4 nested properties
os string
Values: "linux" "windows" "darwin" "freebsd" "netbsd" "openbsd" "dragonfly" "solaris"
arch string
Values: "arm" "arm64" "amd64" "386"
variant string
version string
workspace object
1 nested properties
path string required
minLength=1
clone object
2 nested properties
depth integer

If empty the full repository may be cloned https://docs.drone.io/yaml/exec/#the-clone-object

disable boolean

It can be useful when you need to disable implement your own custom clone logic. https://docs.drone.io/yaml/exec/#the-clone-object

trigger object
9 nested properties
branch condition | object | object
cron condition | object | object
event condition | object | object
paths condition | object | object
ref condition | object | object
repo condition | object | object
status string[]
target condition | object | object
instance condition | object | object
concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

depends_on nonEmptyString[]
pipeline_docker object
type const: "docker"
Constant: "docker"
environment Record<string, string | number | boolean | secret>
steps
volumes object[]
services object[]
image_pull_secrets string[]
node Record<string, string>
concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind
name
platform
workspace
clone
trigger
depends_on
pipeline_kubernetes object
type const: "kubernetes"
Constant: "kubernetes"
node Record<string, string>

If specified, the pod's tolerations.

Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.

HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.

node_selector

A list of node selector terms.

steps
volumes object[]
services object[]
image_pull_secrets string[]
service_account_name string

The name of the service account to use when running the kubernetes pipeline

concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind
name
platform
workspace
clone
trigger
depends_on
pipeline_exec object
type const: "exec"
Constant: "exec"
steps
node Record<string, string>
concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind
name
platform
workspace
clone
trigger
depends_on
pipeline_ssh object
server object required
4 nested properties
host nonEmptyString | secret required
user nonEmptyString | secret required
password nonEmptyString | secret
type const: "ssh"
Constant: "ssh"
steps
concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind
name
platform
workspace
clone
trigger
depends_on
pipeline_digitalocean object
token nonEmptyString | secret required
type const: "digitalocean"
Constant: "digitalocean"
steps
concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind
name
platform
workspace
clone
trigger
depends_on
pipeline_macstadium object
type const: "macstadium"
Constant: "macstadium"
steps
kind
name
platform
workspace
clone
trigger
depends_on
pipeline_vm object
type const: "vm"
Constant: "vm"
environment Record<string, string | number | boolean | secret>
pool object
1 nested properties
use string
minLength=1
steps
volumes object[]
services object[]
image_pull_secrets string[]
node Record<string, string>
concurrency object
1 nested properties
limit number required

Defines the concurrency limits for the named pipeline https://docs.drone.io/yaml/exec/#the-concurrency-object

kind
name
platform
workspace
clone
trigger
depends_on
step object
name string required
minLength=1
failure string
Values: "always" "ignore"
commands nonEmptyString[]
detach boolean
environment Record<string, string | number | boolean | secret>
when object
9 nested properties
branch condition | object | object
cron condition | object | object
event condition | object | object
paths condition | object | object
ref condition | object | object
repo condition | object | object
status string[]
target condition | object | object
instance condition | object | object
depends_on nonEmptyString[]
step_docker
step_kubernetes
step_exec
step_ssh
step_digitalocean
step_macstadium
steps_volumes object[]