Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Update example YAML to use arrays for plugins (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrietgrace authored and chronotc committed Feb 7, 2019
1 parent 70a7250 commit ce36794
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ This plugin will assist you in triggering pipelines by watching folders in your
steps:
- label: "Triggering pipelines"
plugins:
chronotc/monorepo-diff#v1.0.0:
diff: "git diff --name-only HEAD~1"
watch:
- path: "foo-service/"
config:
trigger: "deploy-foo-service"
- chronotc/monorepo-diff#v1.0.0:
diff: "git diff --name-only HEAD~1"
watch:
- path: "foo-service/"
config:
trigger: "deploy-foo-service"
```
### Detailed
Expand All @@ -24,24 +24,24 @@ steps:
steps:
- label: "Triggering pipelines"
plugins:
chronotc/monorepo-diff#v1.0.0:
diff: "git diff --name-only $(head -n 1 last_successful_build)"
watch:
- path: "foo-service/"
config:
trigger: "deploy-foo-service"
build:
message: "Deploying foo service"
env:
- HELLO=123
- AWS_REGION
- path: "ops/terraform/"
config:
trigger: "provision-terraform-resources"
async: true
wait: true
hooks:
- command: "echo $(git rev-parse HEAD) > last_successful_build"
- chronotc/monorepo-diff#v1.0.0:
diff: "git diff --name-only $(head -n 1 last_successful_build)"
watch:
- path: "foo-service/"
config:
trigger: "deploy-foo-service"
build:
message: "Deploying foo service"
env:
- HELLO=123
- AWS_REGION
- path: "ops/terraform/"
config:
trigger: "provision-terraform-resources"
async: true
wait: true
hooks:
- command: "echo $(git rev-parse HEAD) > last_successful_build"
```
## Configuration
Expand Down Expand Up @@ -141,12 +141,12 @@ steps:
env:
DEBUG: true
plugins:
chronotc/monorepo-diff:
diff: "git diff --name-only HEAD~1"
watch:
- path: "foo-service/"
config:
trigger: "deploy-foo-service"
- chronotc/monorepo-diff:
diff: "git diff --name-only HEAD~1"
watch:
- path: "foo-service/"
config:
trigger: "deploy-foo-service"
```

## References
Expand All @@ -163,4 +163,4 @@ Ensure that all tests are in the `./tests`

### To run lint

`docker-compose run --rm lint`
`docker-compose run --rm lint`

0 comments on commit ce36794

Please sign in to comment.