Add privileged schema definition (#2777)

Co-authored-by: 6543 <m.huber@kithara.com>
This commit is contained in:
Patrick Schratz 2023-11-09 19:31:08 +01:00 committed by GitHub
parent ae39d455bf
commit f3df6f8873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -17,6 +17,7 @@ steps:
commands: go test
commands:
privileged: true
image: golang
commands:
- go get

View file

@ -212,6 +212,9 @@
"image": {
"$ref": "#/definitions/step_image"
},
"privileged": {
"$ref": "#/definitions/step_privileged"
},
"pull": {
"$ref": "#/definitions/step_pull"
},
@ -423,6 +426,11 @@
"description": "Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#image",
"type": "string"
},
"step_privileged": {
"description": "Run the step in privileged mode. Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#privileged",
"type": "boolean",
"default": false
},
"step_pull": {
"description": "Always pull the latest image on pipeline execution Read more: https://woodpecker-ci.org/docs/usage/pipeline-syntax#image",
"type": "boolean"
@ -561,6 +569,9 @@
"image": {
"$ref": "#/definitions/step_image"
},
"privileged": {
"$ref": "#/definitions/step_privileged"
},
"pull": {
"$ref": "#/definitions/step_pull"
},