Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mtharrison committed Jul 4, 2020
1 parent 64f184f commit db5f32f
Showing 1 changed file with 34 additions and 36 deletions.
70 changes: 34 additions & 36 deletions README.md
Expand Up @@ -9,43 +9,41 @@ A resource type for [Concourse CI](https://concourse-ci.org/) to trigger builds
## Usage

```yaml
resource_types:
- name: github-pr-comment-resource
type: docker-image
source:
repository: mtharrison/github-pr-comment-resource
tag: v0.2.0

resource_types:
- name: github-pr-comment-resource
type: docker-image
source:
repository: mtharrison/github-pr-comment-resource
tag: v0.2.0
resources:
- name: deployment-trigger
type: github-pr-comment-resource
icon: github
source:
repository: "golang/go"
access_token: "[...]"
v3_endpoint: "[...]" # optional - for github enterprise users
regex: "^deploy (\\w+) to (\\w+) please$" # optional

- name: deployment-trigger
type: github-pr-comment-resource
icon: github
source:
repository: golang/go
access_token: '[...]'
v3_endpoint: '[...]'
regex: ^deploy (\w+) to (\w+) please$
jobs:
- name: deployment-test
plan:
- get: deployment-trigger
trigger: true
- task: echo
config:
image_resource:
type: registry-image
source:
repository: alpine
inputs:
- name: deployment-trigger
platform: linux
run:
path: /bin/sh
args:
- -c
- |
apk add jq &> /dev/null
cat deployment-trigger/comment.json | jq
- name: deployment-test
plan:
- get: deployment-trigger
trigger: true
- task: echo
config:
image_resource:
type: registry-image
source:
repository: alpine
inputs:
- name: deployment-trigger
platform: linux
run:
path: /bin/sh
args:
- '-c'
- |
apk add jq &> /dev/null
cat deployment-trigger/comment.json | jq
```

0 comments on commit db5f32f

Please sign in to comment.