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

Update example YAML to use arrays for plugins #11

Merged
merged 1 commit into from
Feb 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`