File tree Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Original file line number Diff line number Diff line change 33This implements the ability to have steps / pipelines only execute when certain files have changed, using the following additional YAML syntax:
44
55```
6- pipeline:
7- frontend:
8- image: node
9- commands:
10- - cd app
11- - npm run test
12- + when:
13- + changeset:
14- + includes: [ **/**.js, **/**.css, **/**.html ]
15- backend:
16- image: golang
17- commands:
18- - go build
19- - go test -v
20- + when:
21- + changeset:
22- + includes: [ **/**.go ]
23-
24- +trigger:
25- + changeset:
26- + includes: [ **/**.go ]
6+ kind: pipeline
7+ name: default
8+
9+ steps:
10+ - name: frontend
11+ image: node
12+ commands:
13+ - cd app
14+ - npm run test
15+ when:
16+ changeset:
17+ includes: [ **/**.js, **/**.css, **/**.html ]
18+
19+ trigger:
20+ changeset:
21+ includes: [ **/**.go ]
2722```
2823
2924This plugin is compatible with the [ Drone Config Plugin Pipeline] ( https://github.com/microadam/drone-config-plugin-pipeline )
You can’t perform that action at this time.
0 commit comments