Skip to content

Commit

Permalink
feat(webhook): allow to configure webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
pbelmann committed Nov 10, 2017
1 parent aec16bb commit e655176
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN wget -qO- https://github.com/adnanh/webhook/releases/download/2.6.5/webhook-
| tar xzv --strip 1 -C /usr/local/bin
RUN mkdir -p /var/webhook /srv_root/docs
ADD update.sh /usr/local/bin/update.sh
ADD hooks.json /usr/local/bin/hooks.json
COPY config/hooks.json /usr/local/bin/hooks.json
ADD start.sh /usr/local/bin/start.sh
RUN mkdir /var/www/html/wiki
ENTRYPOINT "start.sh"
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ where

## Production

1. Replace hooks.json in order to set the correct hook (e.g.: GitHub webhooks)
1. Replace hooks.json in order to set the correct hook (e.g.: GitHub webhooks) with the command:

~~~BASH
docker run -it -v "$(pwd)/config:/usr/local/bin" -e REPOSITORY=REPOSITORY_URL -p "80:80" -p "9000:9000" docs
~~~

where

* config is a folder with the **hooks.json** file.

2. (Optional) You can change the theme in the config yaml.
File renamed without changes.

0 comments on commit e655176

Please sign in to comment.