Skip to content

Commit

Permalink
Add privileged schema definition (#2777)
Browse files Browse the repository at this point in the history
Co-authored-by: 6543 <[email protected]>
  • Loading branch information
pat-s and 6543 authored Nov 9, 2023
1 parent ae39d45 commit f3df6f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ steps:
commands: go test

commands:
privileged: true
image: golang
commands:
- go get
Expand Down
11 changes: 11 additions & 0 deletions pipeline/frontend/yaml/linter/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@
"image": {
"$ref": "#/definitions/step_image"
},
"privileged": {
"$ref": "#/definitions/step_privileged"
},
"pull": {
"$ref": "#/definitions/step_pull"
},
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -561,6 +569,9 @@
"image": {
"$ref": "#/definitions/step_image"
},
"privileged": {
"$ref": "#/definitions/step_privileged"
},
"pull": {
"$ref": "#/definitions/step_pull"
},
Expand Down

0 comments on commit f3df6f8

Please sign in to comment.