2021-09-27 00:38:15 +00:00
{
"title" : "Woodpecker CI configuration file" ,
"$schema" : "http://json-schema.org/draft-07/schema#" ,
2024-02-12 14:00:33 +00:00
"$id" : "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json" ,
2024-02-11 08:53:02 +00:00
"description" : "Schema of a Woodpecker pipeline file. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax" ,
2021-09-27 00:38:15 +00:00
"type" : "object" ,
2023-06-07 10:04:37 +00:00
"required" : [ "steps" ] ,
2021-09-27 00:38:15 +00:00
"additionalProperties" : false ,
"properties" : {
"$schema" : {
"type" : "string" ,
"format" : "uri"
} ,
2022-07-17 16:25:56 +00:00
"variables" : {
2024-02-11 08:53:02 +00:00
"description" : "Use yaml aliases to define variables. Read more: https://woodpecker-ci.org/docs/usage/advanced-usage"
2022-07-17 16:25:56 +00:00
} ,
2023-11-26 07:46:06 +00:00
"clone" : {
"$ref" : "#/definitions/clone"
} ,
"skip_clone" : {
"type" : "boolean"
} ,
"branches" : {
"$ref" : "#/definitions/branches"
} ,
"when" : {
"$ref" : "#/definitions/pipeline_when"
} ,
"steps" : {
"$ref" : "#/definitions/step_list"
} ,
"pipeline" : {
"$ref" : "#/definitions/step_list" ,
"description" : "deprecated, use steps"
} ,
"services" : {
"$ref" : "#/definitions/services"
} ,
"workspace" : {
"$ref" : "#/definitions/workspace"
} ,
"matrix" : {
"$ref" : "#/definitions/matrix"
} ,
"platform" : {
"$ref" : "#/definitions/platform"
} ,
"labels" : {
"$ref" : "#/definitions/labels"
} ,
2021-09-27 00:38:15 +00:00
"depends_on" : {
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
}
2021-09-27 00:38:15 +00:00
} ,
2022-06-10 03:44:26 +00:00
"runs_on" : {
2021-09-27 00:38:15 +00:00
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
}
2023-11-06 00:37:02 +00:00
} ,
2023-11-26 07:46:06 +00:00
"version" : {
"type" : "number" ,
"default" : 1
}
2021-09-27 00:38:15 +00:00
} ,
"definitions" : {
"clone" : {
2024-02-11 08:53:02 +00:00
"description" : "Configures the clone step. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#clone" ,
2023-12-07 15:56:13 +00:00
"oneOf" : [
{
2021-09-27 00:38:15 +00:00
"type" : "object" ,
2023-12-07 15:56:13 +00:00
"additionalProperties" : false ,
2021-09-27 00:38:15 +00:00
"properties" : {
2023-12-07 15:56:13 +00:00
"git" : {
"type" : "object" ,
"properties" : {
"image" : {
"$ref" : "#/definitions/step_image"
} ,
"settings" : {
"$ref" : "#/definitions/clone_settings"
}
}
2021-09-27 00:38:15 +00:00
}
}
2023-12-07 15:56:13 +00:00
} ,
{
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/step"
} ,
"minLength" : 1
}
]
} ,
"clone_settings" : {
"description" : "Change the settings of your clone plugin. Read more: https://woodpecker-ci.org/plugins/Git%20Clone" ,
"type" : "object" ,
"properties" : {
"depth" : {
"type" : "number" ,
"description" : "If specified, uses git's --depth option to create a shallow clone with a limited number of commits, overwritten by partial"
} ,
"recursive" : {
"type" : "boolean" ,
"default" : false ,
"description" : "Clones submodules recursively"
} ,
"partial" : {
"type" : "boolean" ,
"description" : "Only fetch the one commit and it's blob objects to resolve all files, overwrite depth with 1"
} ,
"lfs" : {
"type" : "boolean" ,
"default" : true ,
"description" : "Set this to false to disable retrieval of LFS files"
} ,
"tags" : {
"type" : "boolean" ,
"description" : "Fetches tags when set to true, default is false if event is not tag else true"
2021-09-27 00:38:15 +00:00
}
2023-12-07 15:56:13 +00:00
} ,
"additionalProperties" : {
"type" : [ "boolean" , "string" , "number" , "array" , "object" ]
2021-09-27 00:38:15 +00:00
}
} ,
"branches" : {
2024-02-11 08:53:02 +00:00
"description" : "deprecated, use when.branch" ,
2021-09-27 00:38:15 +00:00
"oneOf" : [
{
"type" : "array" ,
"items" : {
"type" : "string"
} ,
"minProperties" : 1
} ,
{
"type" : "string"
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"exclude" : {
"oneOf" : [
{
"type" : "array" ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
} ,
2021-09-27 00:38:15 +00:00
"minLength" : 1
} ,
2023-11-26 07:46:06 +00:00
{
"type" : "string"
}
2021-09-27 00:38:15 +00:00
]
} ,
"include" : {
"oneOf" : [
{
"type" : "array" ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
} ,
2021-09-27 00:38:15 +00:00
"minLength" : 1
} ,
2023-11-26 07:46:06 +00:00
{
"type" : "string"
}
2021-09-27 00:38:15 +00:00
]
}
}
}
]
} ,
2023-06-07 10:04:37 +00:00
"step_list" : {
2024-02-11 08:53:02 +00:00
"description" : "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" ,
2022-06-13 21:13:09 +00:00
"oneOf" : [
2023-11-26 07:46:06 +00:00
{
"type" : "object" ,
"additionalProperties" : {
"$ref" : "#/definitions/step"
} ,
"minProperties" : 1
} ,
{
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/step"
} ,
"minLength" : 1
}
2022-06-13 21:13:09 +00:00
]
2021-09-27 00:38:15 +00:00
} ,
2022-09-26 07:27:20 +00:00
"pipeline_when" : {
2024-02-11 08:53:02 +00:00
"description" : "Whole pipelines can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---global-workflow-conditions" ,
2022-09-26 07:27:20 +00:00
"oneOf" : [
{
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"$ref" : "#/definitions/pipeline_when_condition"
}
2022-09-26 07:27:20 +00:00
} ,
{
"$ref" : "#/definitions/pipeline_when_condition"
}
]
} ,
"pipeline_when_condition" : {
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"repo" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only on a specific repository. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#repo" ,
2022-09-26 07:27:20 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
"branch" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#branch" ,
2022-09-26 07:27:20 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
"event" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#event" ,
2022-09-26 07:27:20 +00:00
"default" : [ ] ,
"oneOf" : [
{
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"$ref" : "#/definitions/event_enum"
}
2022-09-26 07:27:20 +00:00
} ,
{
"$ref" : "#/definitions/event_enum"
}
]
} ,
2023-06-09 10:43:12 +00:00
"ref" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#ref" ,
2022-09-26 07:27:20 +00:00
"type" : "string"
} ,
"cron" : {
2024-02-11 08:53:02 +00:00
"description" : "filter cron by title. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#cron" ,
2022-09-26 07:27:20 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
"platform" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only on a specific platform. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#platform" ,
2022-09-26 07:27:20 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
"environment" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only for a specific environment. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#environment" ,
2022-09-26 07:27:20 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
"instance" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#instance" ,
2022-09-26 07:27:20 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
"path" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only on commit with certain files added/removed/modified. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#path" ,
2022-09-26 07:27:20 +00:00
"oneOf" : [
2023-11-26 07:46:06 +00:00
{
"type" : "string"
} ,
2022-09-26 07:27:20 +00:00
{
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
{
"type" : "object" ,
"properties" : {
"include" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"exclude" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"ignore_message" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
]
2022-10-05 23:49:23 +00:00
} ,
"evaluate" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only if the expression evaluates to true. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate" ,
2022-10-05 23:49:23 +00:00
"type" : "string"
2022-09-26 07:27:20 +00:00
}
}
} ,
2021-09-27 00:38:15 +00:00
"step" : {
2024-02-11 08:53:02 +00:00
"description" : "Every step of your pipeline executes arbitrary commands inside a specified docker container. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps" ,
2021-09-27 00:38:15 +00:00
"type" : "object" ,
2021-12-04 15:44:18 +00:00
"additionalProperties" : false ,
2021-09-27 00:38:15 +00:00
"required" : [ "image" ] ,
"properties" : {
2023-11-03 10:44:03 +00:00
"name" : {
"description" : "The name of the step. Can be used if using the array style steps list." ,
"type" : "string"
} ,
2021-09-27 00:38:15 +00:00
"image" : {
2022-07-19 13:01:36 +00:00
"$ref" : "#/definitions/step_image"
2021-09-27 00:38:15 +00:00
} ,
2023-11-09 18:31:08 +00:00
"privileged" : {
"$ref" : "#/definitions/step_privileged"
} ,
2021-09-27 00:38:15 +00:00
"pull" : {
2022-07-19 13:01:36 +00:00
"$ref" : "#/definitions/step_pull"
2021-09-27 00:38:15 +00:00
} ,
"commands" : {
2022-07-19 13:01:36 +00:00
"$ref" : "#/definitions/step_commands"
2021-09-27 00:38:15 +00:00
} ,
"environment" : {
2022-07-19 13:01:36 +00:00
"$ref" : "#/definitions/step_environment"
2021-09-27 00:38:15 +00:00
} ,
2022-10-24 14:31:06 +00:00
"directory" : {
"$ref" : "#/definitions/step_directory"
} ,
2021-09-27 00:38:15 +00:00
"secrets" : {
2022-07-19 13:01:36 +00:00
"$ref" : "#/definitions/step_secrets"
} ,
"settings" : {
"$ref" : "#/definitions/step_settings"
2021-09-27 00:38:15 +00:00
} ,
"when" : {
"$ref" : "#/definitions/step_when"
} ,
2022-07-19 13:01:36 +00:00
"volumes" : {
"$ref" : "#/definitions/step_volumes"
} ,
2021-09-27 00:38:15 +00:00
"group" : {
2024-02-11 08:53:02 +00:00
"description" : "deprecated, use depends_on" ,
2021-09-27 00:38:15 +00:00
"type" : "string"
} ,
2023-12-24 11:14:30 +00:00
"depends_on" : {
"description" : "Execute a step after another step has finished." ,
2024-01-01 11:16:36 +00:00
"oneOf" : [
{
"type" : "array" ,
"minLength" : 1 ,
"items" : {
"type" : "string"
}
} ,
{
"type" : "string"
}
]
2023-12-24 11:14:30 +00:00
} ,
2021-12-04 15:44:18 +00:00
"detach" : {
"description" : "Detach a step to run in background until pipeline finishes. Read more: https://woodpecker-ci.org/docs/usage/services#detachment" ,
"type" : "boolean"
2022-11-15 18:47:27 +00:00
} ,
"failure" : {
2024-02-11 08:53:02 +00:00
"description" : "How to handle the failure of this step. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#failure" ,
2022-11-15 18:47:27 +00:00
"type" : "string" ,
"enum" : [ "fail" , "ignore" ] ,
"default" : "fail"
2023-06-03 22:50:08 +00:00
} ,
"backend_options" : {
"$ref" : "#/definitions/step_backend_options"
2021-09-27 00:38:15 +00:00
}
}
} ,
"step_when" : {
2024-02-11 08:53:02 +00:00
"description" : "Steps can be skipped based on conditions. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#when---conditional-execution" ,
2022-08-14 17:32:49 +00:00
"oneOf" : [
{
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"$ref" : "#/definitions/step_when_condition"
}
2022-08-14 17:32:49 +00:00
} ,
{
"$ref" : "#/definitions/step_when_condition"
}
]
} ,
"step_when_condition" : {
2021-09-27 00:38:15 +00:00
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
2021-12-30 01:30:08 +00:00
"repo" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only on a specific repository. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#repo" ,
2022-08-31 22:36:32 +00:00
"$ref" : "#/definitions/constraint_list"
2021-12-30 01:30:08 +00:00
} ,
2021-09-27 00:38:15 +00:00
"branch" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#branch" ,
2022-08-31 22:36:32 +00:00
"$ref" : "#/definitions/constraint_list"
2021-09-27 00:38:15 +00:00
} ,
"event" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#event" ,
2023-12-31 07:49:46 +00:00
"$ref" : "#/definitions/event_constraint_list"
2021-09-27 00:38:15 +00:00
} ,
2023-06-09 10:43:12 +00:00
"ref" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#ref" ,
2021-09-27 00:38:15 +00:00
"type" : "string"
} ,
2022-08-31 22:36:32 +00:00
"cron" : {
2024-02-11 08:53:02 +00:00
"description" : "filter cron by title. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#cron" ,
2022-08-31 22:36:32 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
2021-09-27 00:38:15 +00:00
"status" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#status" ,
2021-09-27 00:38:15 +00:00
"oneOf" : [
{
"type" : "array" ,
2022-08-31 22:36:32 +00:00
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string" ,
"enum" : [ "success" , "failure" ]
}
2021-09-27 00:38:15 +00:00
} ,
2022-08-31 22:36:32 +00:00
{
"type" : "string" ,
"enum" : [ "success" , "failure" ]
}
2021-09-27 00:38:15 +00:00
]
} ,
2022-08-31 22:36:32 +00:00
"platform" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only on a specific platform. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#platform" ,
2022-08-31 22:36:32 +00:00
"$ref" : "#/definitions/constraint_list"
} ,
2021-09-27 00:38:15 +00:00
"environment" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only for a specific environment. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#environment" ,
2022-08-31 22:36:32 +00:00
"$ref" : "#/definitions/constraint_list"
2021-09-27 00:38:15 +00:00
} ,
"matrix" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/matrix-workflows" ,
2021-09-27 00:38:15 +00:00
"type" : "object" ,
"additionalProperties" : {
"type" : [ "boolean" , "string" , "number" ]
}
} ,
"instance" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#instance" ,
2022-08-31 22:36:32 +00:00
"$ref" : "#/definitions/constraint_list"
2021-09-27 00:38:15 +00:00
} ,
"path" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only on commit with certain files added/removed/modified. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#path" ,
2021-09-27 00:38:15 +00:00
"oneOf" : [
2023-11-26 07:46:06 +00:00
{
"type" : "string"
} ,
2022-01-29 13:26:00 +00:00
{
2022-05-30 23:12:18 +00:00
"type" : "array" ,
2022-01-29 13:26:00 +00:00
"items" : {
"type" : "string"
}
} ,
2021-09-27 00:38:15 +00:00
{
"type" : "object" ,
"properties" : {
"include" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"exclude" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"ignore_message" : {
"type" : "string"
}
} ,
"additionalProperties" : false
}
]
2022-10-05 23:49:23 +00:00
} ,
"evaluate" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute a step only if the expression evaluates to true. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#evaluate" ,
2022-10-05 23:49:23 +00:00
"type" : "string"
2021-09-27 00:38:15 +00:00
}
}
} ,
2022-08-29 22:36:37 +00:00
"event_enum" : {
2024-02-09 07:05:21 +00:00
"enum" : [ "push" , "pull_request" , "pull_request_closed" , "tag" , "deployment" , "cron" , "manual" , "release" ]
2022-08-31 22:36:32 +00:00
} ,
2023-12-31 07:49:46 +00:00
"event_constraint_list" : {
"oneOf" : [
{
"$ref" : "#/definitions/event_enum"
} ,
{
"type" : "array" ,
"minLength" : 1 ,
"items" : {
"$ref" : "#/definitions/event_enum"
}
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"include" : {
"oneOf" : [
{
"$ref" : "#/definitions/event_enum"
} ,
{
"type" : "array" ,
"minLength" : 1 ,
"items" : {
"$ref" : "#/definitions/event_enum"
}
}
]
} ,
"exclude" : {
"oneOf" : [
{
"$ref" : "#/definitions/event_enum"
} ,
{
"type" : "array" ,
"minLength" : 1 ,
"items" : {
"$ref" : "#/definitions/event_enum"
}
}
]
}
}
}
]
} ,
2022-08-31 22:36:32 +00:00
"constraint_list" : {
"oneOf" : [
{
"type" : "string"
} ,
{
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
}
2022-08-31 22:36:32 +00:00
} ,
{
"type" : "object" ,
"additionalProperties" : false ,
"properties" : {
"include" : {
"oneOf" : [
{
"type" : "string"
} ,
{
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
}
2022-08-31 22:36:32 +00:00
}
]
} ,
"exclude" : {
"oneOf" : [
{
"type" : "string"
} ,
{
"type" : "array" ,
"minLength" : 1 ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
}
2022-08-31 22:36:32 +00:00
}
]
}
}
}
]
2022-08-29 22:36:37 +00:00
} ,
2022-07-19 13:01:36 +00:00
"step_image" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#image" ,
2022-07-19 13:01:36 +00:00
"type" : "string"
} ,
2023-11-09 18:31:08 +00:00
"step_privileged" : {
2024-02-11 08:53:02 +00:00
"description" : "Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/next/usage/workflow-syntax#privileged-mode" ,
2023-11-09 18:31:08 +00:00
"type" : "boolean" ,
"default" : false
} ,
2022-07-19 13:01:36 +00:00
"step_pull" : {
2024-02-11 08:53:02 +00:00
"description" : "Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#image" ,
2022-07-19 13:01:36 +00:00
"type" : "boolean"
} ,
"step_commands" : {
2024-02-11 08:53:02 +00:00
"description" : "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" ,
2022-07-19 13:01:36 +00:00
"oneOf" : [
{
"type" : "array" ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
} ,
2022-07-19 13:01:36 +00:00
"minLength" : 1
} ,
2023-11-26 07:46:06 +00:00
{
"type" : "string"
}
2022-07-19 13:01:36 +00:00
]
} ,
"step_environment" : {
"description" : "Pass environment variables to a pipeline step. Read more: https://woodpecker-ci.org/docs/usage/environment" ,
"oneOf" : [
{
"type" : "array" ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
} ,
2022-07-19 13:01:36 +00:00
"minLength" : 1
} ,
{
"type" : "object" ,
"additionalProperties" : {
2024-03-20 08:28:02 +00:00
"type" : [ "boolean" , "string" , "number" , "array" , "object" ]
2022-07-19 13:01:36 +00:00
}
}
]
} ,
"step_secrets" : {
"description" : "Pass secrets to a pipeline step at runtime. Read more: https://woodpecker-ci.org/docs/usage/secrets" ,
"type" : "array" ,
"items" : {
"oneOf" : [
2023-11-26 07:46:06 +00:00
{
"type" : "string"
} ,
2022-07-19 13:01:36 +00:00
{
"type" : "object" ,
"required" : [ "source" , "target" ] ,
"properties" : {
2023-11-26 07:46:06 +00:00
"source" : {
"type" : "string"
} ,
"target" : {
"type" : "string"
}
2022-07-19 13:01:36 +00:00
}
}
]
} ,
"minLength" : 1
} ,
"step_settings" : {
2024-02-11 08:53:02 +00:00
"description" : "Change the settings of your plugin. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview" ,
2022-07-19 13:01:36 +00:00
"type" : "object" ,
"additionalProperties" : {
"type" : [ "boolean" , "string" , "number" , "array" , "object" ]
}
} ,
"step_volumes" : {
"description" : "Mount files or folders from the host machine into your step container. Read more: https://woodpecker-ci.org/docs/usage/volumes" ,
"type" : "array" ,
2023-11-26 07:46:06 +00:00
"items" : {
"type" : "string"
} ,
2022-07-19 13:01:36 +00:00
"minLength" : 1
} ,
2022-10-24 14:31:06 +00:00
"step_directory" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#directory" ,
2022-10-24 14:31:06 +00:00
"type" : "string"
} ,
2023-06-03 22:50:08 +00:00
"step_backend_options" : {
"description" : "Advanced options for the different agent backends" ,
"type" : "object" ,
"properties" : {
2023-10-24 12:42:05 +00:00
"kubernetes" : {
2023-11-26 07:46:06 +00:00
"$ref" : "#/definitions/step_backend_kubernetes"
2023-06-03 22:50:08 +00:00
}
}
} ,
"step_backend_kubernetes" : {
"description" : "Advanced options for the kubernetes agent backends" ,
"type" : "object" ,
"properties" : {
2023-10-24 12:42:05 +00:00
"resources" : {
2023-06-03 22:50:08 +00:00
"$ref" : "#/definitions/step_backend_kubernetes_resources"
2023-11-26 07:46:06 +00:00
} ,
"securityContext" : {
"$ref" : "#/definitions/step_backend_kubernetes_security_context"
2023-06-03 22:50:08 +00:00
}
}
} ,
"step_backend_kubernetes_resources" : {
2024-02-11 08:53:02 +00:00
"description" : "Resources for the kubernetes backend. Read more: https://woodpecker-ci.org/docs/administration/backends/kubernetes#job-specific-configuration" ,
2023-06-03 22:50:08 +00:00
"type" : "object" ,
"properties" : {
"requests" : {
"$ref" : "#/definitions/step_kubernetes_resources_object"
} ,
"limits" : {
"$ref" : "#/definitions/step_kubernetes_resources_object"
}
}
} ,
2023-11-26 07:46:06 +00:00
"step_backend_kubernetes_security_context" : {
2024-02-11 08:53:02 +00:00
"description" : "Pods / containers security context. Read more: https://woodpecker-ci.org/docs/administration/backends/kubernetes#securitycontext" ,
2023-11-26 07:46:06 +00:00
"type" : "object" ,
"properties" : {
"privileged" : {
"type" : "boolean"
} ,
"runAsNonRoot" : {
"type" : "boolean"
} ,
"runAsUser" : {
"type" : "number"
} ,
"runAsGroup" : {
"type" : "number"
} ,
"fsGroup" : {
"type" : "number"
2024-01-12 22:32:24 +00:00
} ,
"seccompProfile" : {
"$ref" : "#/definitions/step_backend_kubernetes_secprofile"
} ,
"apparmorProfile" : {
"$ref" : "#/definitions/step_backend_kubernetes_secprofile"
}
}
} ,
"step_backend_kubernetes_secprofile" : {
2024-02-11 08:53:02 +00:00
"description" : "Pods / containers security profile. Read more: https://woodpecker-ci.org/docs/administration/backends/kubernetes#job-specific-configuration" ,
2024-01-12 22:32:24 +00:00
"type" : "object" ,
"properties" : {
"type" : {
"type" : "string"
} ,
"localhostProfile" : {
"type" : "string"
2023-11-26 07:46:06 +00:00
}
}
} ,
2023-06-03 22:50:08 +00:00
"step_kubernetes_resources_object" : {
"description" : "A list of kubernetes resource mappings" ,
"type" : "object" ,
"additionalProperties" : {
"type" : "string"
}
} ,
2023-06-12 14:00:59 +00:00
"step_backend_kubernetes_service_account" : {
2024-02-11 08:53:02 +00:00
"description" : "serviceAccountName to be use by job. Read more: https://woodpecker-ci.org/docs/administration/backends/kubernetes#serviceaccountname" ,
2023-06-12 14:00:59 +00:00
"type" : "object" ,
"properties" : {
"requests" : {
"$ref" : "#/definitions/step_kubernetes_service_account_object"
} ,
"limits" : {
"$ref" : "#/definitions/step_kubernetes_service_account_object"
}
}
} ,
"step_kubernetes_service_account_object" : {
"description" : "A list of kubernetes resource mappings" ,
"type" : "object" ,
"additionalProperties" : {
"type" : "string"
}
} ,
2021-09-27 00:38:15 +00:00
"services" : {
2022-07-19 13:01:36 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/services" ,
2023-12-07 15:56:13 +00:00
"oneOf" : [
{
"type" : "object" ,
"additionalProperties" : {
"$ref" : "#/definitions/service"
} ,
"minProperties" : 1
} ,
{
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/service"
} ,
"minLength" : 1
}
]
2022-07-19 13:01:36 +00:00
} ,
"service" : {
"description" : "Read more: https://woodpecker-ci.org/docs/usage/services" ,
"type" : "object" ,
"additionalProperties" : false ,
"minProperties" : 1 ,
"required" : [ "image" ] ,
"properties" : {
2023-12-07 15:56:13 +00:00
"name" : {
"description" : "The name of the service. Can be used if using the array style services list" ,
"type" : "string"
} ,
2022-07-19 13:01:36 +00:00
"image" : {
"$ref" : "#/definitions/step_image"
} ,
2023-11-09 18:31:08 +00:00
"privileged" : {
"$ref" : "#/definitions/step_privileged"
} ,
2022-07-19 13:01:36 +00:00
"pull" : {
"$ref" : "#/definitions/step_pull"
} ,
"commands" : {
"$ref" : "#/definitions/step_commands"
} ,
"environment" : {
"$ref" : "#/definitions/step_environment"
} ,
"secrets" : {
"$ref" : "#/definitions/step_secrets"
} ,
"settings" : {
"$ref" : "#/definitions/step_settings"
} ,
"when" : {
"$ref" : "#/definitions/step_when"
} ,
"volumes" : {
"$ref" : "#/definitions/step_volumes"
} ,
2023-12-11 18:22:55 +00:00
"backend_options" : {
"$ref" : "#/definitions/step_backend_options"
} ,
2022-07-19 13:01:36 +00:00
"ports" : {
"description" : "expose ports to which other steps can connect to" ,
"type" : "array" ,
2022-07-19 13:06:08 +00:00
"items" : {
2023-11-26 07:46:06 +00:00
"oneOf" : [
{
"type" : "number"
} ,
{
"type" : "string"
}
]
2022-07-19 13:06:08 +00:00
} ,
2022-07-19 13:01:36 +00:00
"minLength" : 1
}
}
2021-09-27 00:38:15 +00:00
} ,
"workspace" : {
2024-02-11 08:53:02 +00:00
"description" : "Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#workspace" ,
2021-09-27 00:38:15 +00:00
"type" : "object" ,
"additionalProperties" : true
} ,
"matrix" : {
2024-02-11 08:53:02 +00:00
"description" : "Execute pipeline for each matrix combination. Read more: https://woodpecker-ci.org/docs/usage/matrix-workflows" ,
2021-09-27 00:38:15 +00:00
"type" : "object" ,
"properties" : {
"include" : {
"type" : "array" ,
"items" : {
"type" : "object"
} ,
"minLength" : 1
}
} ,
"additionalProperties" : {
"type" : "array" ,
"items" : {
"type" : [ "boolean" , "string" , "number" ]
} ,
"minLength" : 1
}
2022-05-30 23:12:18 +00:00
} ,
"platform" : {
2024-02-11 08:53:02 +00:00
"description" : "deprecated, use labels.platform" ,
2022-05-30 23:12:18 +00:00
"type" : "string" ,
"additionalProperties" : false
} ,
"labels" : {
2024-02-11 08:53:02 +00:00
"description" : "Configures the labels used for the agent selection. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#labels" ,
2022-05-30 23:12:18 +00:00
"type" : "object" ,
"additionalProperties" : {
"type" : [ "boolean" , "string" , "number" ]
}
2021-09-27 00:38:15 +00:00
}
}
}