An open API service indexing awesome lists of open source software.

https://github.com/etheryen/github-webhook-listener

Go webhook listener that executes a given command on push
https://github.com/etheryen/github-webhook-listener

github go listener webhook

Last synced: 4 months ago
JSON representation

Go webhook listener that executes a given command on push

Awesome Lists containing this project

README

        

# github-webhook-listener

Go webhook listener for continous deployment on your server.

## How to use it

1. Create a .env that follows the .env.example schema.
2. Create a config, example:

```yaml
projects:
- repository: websocket-chat
branch: main
command: "cd ~/projects/websocket-chat && just redeploy"
```

3. Now set your github webhook to `{your-server-url}/webhook`.