Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
Adam Duncan authored Feb 20, 2019
1 parent 13a2c54 commit 9f759da
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@
This implements the ability to have steps / pipelines only execute when certain files have changed, using the following additional YAML syntax:

```
pipeline:
frontend:
image: node
commands:
- cd app
- npm run test
+ when:
+ changeset:
+ includes: [ **/**.js, **/**.css, **/**.html ]
backend:
image: golang
commands:
- go build
- go test -v
+ when:
+ changeset:
+ includes: [ **/**.go ]
+trigger:
+ changeset:
+ includes: [ **/**.go ]
kind: pipeline
name: default
steps:
- name: frontend
image: node
commands:
- cd app
- npm run test
when:
changeset:
includes: [ **/**.js, **/**.css, **/**.html ]
trigger:
changeset:
includes: [ **/**.go ]
```

This plugin is compatible with the [Drone Config Plugin Pipeline](https://github.com/microadam/drone-config-plugin-pipeline)
Expand Down

0 comments on commit 9f759da

Please sign in to comment.