From 9f759da996c4b526ec6dc5f3c1dfe08e5db9cba5 Mon Sep 17 00:00:00 2001 From: Adam Duncan Date: Wed, 20 Feb 2019 08:11:01 +0000 Subject: [PATCH] Update README.md Fixes #1 --- README.md | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 383c73b..f4acd9b 100644 --- a/README.md +++ b/README.md @@ -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)