Skip to content

Commit

Permalink
Update README to new flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontj committed Jan 22, 2019
1 parent 6e0bd94 commit 9bfa91b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,8 @@ docker run -d \

## Example of webhooks usage
**Webhook config example**
A webhook config must be valid JSON. If `success` is not specified in the config, git-sync will continue regardless of response code (including errors).

```json
{
"url": "http://localhost:9090/-/reload",
"method": "POST",
"success": 200
}
```
A webhook is configured using a set of CLI flags. At its most basic only `webhook-url` needs to be set.

**Usage**

```
Expand All @@ -54,7 +47,6 @@ docker run -d \
--repo=https://github.com/kubernetes/git-sync
--branch=master
--wait=30
--webhook='[{"url": "http://localhost:9090/-/reload", "method": "POST", "success": 200}]'
--webhook='[{"url": "http://1.2.3.4:9090/-/reload", "method": "POST"}]'
--webhook-url="http://localhost:9090/-/reload"
```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/git-sync/README.md?pixel)]()

0 comments on commit 9bfa91b

Please sign in to comment.