Woodpecker pipeline config
YAML configuring Woodpecker CI
| Type | object |
|---|---|
| File match |
**/.woodpecker/**.yml
**/.woodpecker.yml
**/.woodpecker/**.yaml
**/.woodpecker.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/woodpecker-pipeline-config/latest.json |
| Source | https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json |
Validate with Lintel
npx @lintel/lintel check
Schema of a Woodpecker pipeline file. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax
Properties
The steps section defines a list of steps which will be executed serially, in the order in which they are defined. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps
Use yaml aliases to define variables. Read more: https://woodpecker-ci.org/docs/usage/advanced-usage
Configures the clone step. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
Whole workflow can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions
Execute pipeline for each matrix combination. Read more: https://woodpecker-ci.org/docs/usage/matrix-workflows
1 nested properties
Configures the labels used for the agent selection. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#labels
Deprecated: use when.status instead. Read more: https://woodpecker-ci.org/docs/usage/workflows#flow-control
Definitions
Configures the clone step. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
Change the settings of your clone plugin. Read more: https://woodpecker-ci.org/plugins/git-clone
If specified, uses git's --depth option to create a shallow clone with a limited number of commits, overwritten by partial
Clones submodules recursively
Only fetch the one commit and it's blob objects to resolve all files, overwrite depth with 1
Set this to false to disable retrieval of LFS files
Fetches tags when set to true, default is false if event is not tag else true
The steps section defines a list of steps which will be executed serially, in the order in which they are defined. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps
Whole workflow can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions
Execute a step only on commit with certain files added/removed/modified. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#path
Execute a step only if the expression evaluates to true. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate
A step of your workflow executes either arbitrary commands or uses a plugin. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps
Every step of your pipeline executes arbitrary commands inside a specified docker container. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps
The name of the step. Can be used if using the array style steps list.
Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/next/usage/workflow-syntax#privileged-mode
Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#image
Commands of every pipeline step are executed serially as if you would enter them into your local shell. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#commands
Pass environment variables to a pipeline step. Read more: https://woodpecker-ci.org/docs/usage/environment
Steps can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution
Mount files or folders from the host machine into your step container. Read more: https://woodpecker-ci.org/docs/usage/volumes
Detach a step to run in background until pipeline finishes. Read more: https://woodpecker-ci.org/docs/usage/services#detachment
How to handle the failure of this step. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#failure
Advanced options for the different agent backends
1 nested properties
Advanced options for the kubernetes agent backends
6 nested properties
The tolerations section defines a list of references to the native Kubernetes tolerations. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#tolerations
Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#security-context
The secrets section defines a list of references to the native Kubernetes secrets
Plugins let you execute predefined functions in a more secure context. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview
The name of the step. Can be used if using the array style steps list.
Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/next/usage/workflow-syntax#privileged-mode
Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#image
Change the settings of your plugin. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview
Steps can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution
Mount files or folders from the host machine into your step container. Read more: https://woodpecker-ci.org/docs/usage/volumes
Detach a step to run in background until pipeline finishes. Read more: https://woodpecker-ci.org/docs/usage/services#detachment
How to handle the failure of this step. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#failure
Advanced options for the different agent backends
1 nested properties
Advanced options for the kubernetes agent backends
6 nested properties
The tolerations section defines a list of references to the native Kubernetes tolerations. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#tolerations
Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#security-context
The secrets section defines a list of references to the native Kubernetes secrets
Steps can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution
Execute a step only on commit with certain files added/removed/modified. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#path
Execute a step only if the expression evaluates to true. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate
Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/next/usage/workflow-syntax#privileged-mode
Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#image
Commands of every pipeline step are executed serially as if you would enter them into your local shell. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#commands
Pass environment variables to a pipeline step. Read more: https://woodpecker-ci.org/docs/usage/environment
Change the settings of your plugin. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview
Mount files or folders from the host machine into your step container. Read more: https://woodpecker-ci.org/docs/usage/volumes
Advanced options for the different agent backends
Advanced options for the kubernetes agent backends
6 nested properties
The tolerations section defines a list of references to the native Kubernetes tolerations. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#tolerations
Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#security-context
7 nested properties
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
The secrets section defines a list of references to the native Kubernetes secrets
Advanced options for the kubernetes agent backends
The tolerations section defines a list of references to the native Kubernetes tolerations. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#tolerations
Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#security-context
7 nested properties
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
2 nested properties
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
2 nested properties
The secrets section defines a list of references to the native Kubernetes secrets
Resources for the kubernetes backend. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
A list of kubernetes resource mappings
A list of kubernetes resource mappings
Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#security-context
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
2 nested properties
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
2 nested properties
Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#step-specific-configuration
A list of kubernetes resource mappings
serviceAccountName to be use by job. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#service-account
A list of kubernetes resource mappings
A list of kubernetes resource mappings
A list of kubernetes resource mappings
A reference to a native Kubernetes secret
The name of the secret. Can be used if using the array style secrets list.
The key of the secret to select from.
A target which a native Kubernetes secret maps to.
A target which a native Kubernetes secret maps to.
Toleration entry for the kubernetes backend.
The name of the service. Can be used if using the array style services list
Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/next/usage/workflow-syntax#privileged-mode
Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#image
Commands of every pipeline step are executed serially as if you would enter them into your local shell. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#commands
Pass environment variables to a pipeline step. Read more: https://woodpecker-ci.org/docs/usage/environment
Change the settings of your plugin. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview
Steps can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution
Mount files or folders from the host machine into your step container. Read more: https://woodpecker-ci.org/docs/usage/volumes
How to handle the failure of this step. Read more: https://woodpecker-ci.org/docs/usage/services#stopping
Advanced options for the different agent backends
1 nested properties
Advanced options for the kubernetes agent backends
6 nested properties
The tolerations section defines a list of references to the native Kubernetes tolerations. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#tolerations
Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/configuration/backends/kubernetes#security-context
The secrets section defines a list of references to the native Kubernetes secrets
expose ports to which other steps can connect to
Execute pipeline for each matrix combination. Read more: https://woodpecker-ci.org/docs/usage/matrix-workflows
Configures the labels used for the agent selection. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#labels