Update README to new flags

This commit is contained in:
Thomas Jackson 2019-01-22 13:40:54 -08:00
parent 6e0bd948ec
commit 9bfa91b0af
1 changed files with 2 additions and 10 deletions

View File

@ -36,15 +36,8 @@ docker run -d \
## Example of webhooks usage ## Example of webhooks usage
**Webhook config example** **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). A webhook is configured using a set of CLI flags. At its most basic only `webhook-url` needs to be set.
```json
{
"url": "http://localhost:9090/-/reload",
"method": "POST",
"success": 200
}
```
**Usage** **Usage**
``` ```
@ -54,7 +47,6 @@ docker run -d \
--repo=https://github.com/kubernetes/git-sync --repo=https://github.com/kubernetes/git-sync
--branch=master --branch=master
--wait=30 --wait=30
--webhook='[{"url": "http://localhost:9090/-/reload", "method": "POST", "success": 200}]' --webhook-url="http://localhost:9090/-/reload"
--webhook='[{"url": "http://1.2.3.4:9090/-/reload", "method": "POST"}]'
``` ```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/git-sync/README.md?pixel)]() [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/git-sync/README.md?pixel)]()