https://github.com/wzulfikar/go-puller
minimum go server that does `git pull` for you.
https://github.com/wzulfikar/go-puller
devops docker git go
Last synced: 6 months ago
JSON representation
minimum go server that does `git pull` for you.
- Host: GitHub
- URL: https://github.com/wzulfikar/go-puller
- Owner: wzulfikar
- Created: 2018-08-22T19:41:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-22T21:18:44.000Z (over 7 years ago)
- Last Synced: 2025-09-23T08:47:13.884Z (7 months ago)
- Topics: devops, docker, git, go
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### go-puller
a single-endpoint server that does `git pull` for you.
### Use case:
automatically pull the repo at your vps by sending a webhook request (ie. on git push).
- add changes to repo
- trigger a request to go-puller endpoint when there's a new push (ie. via github webhook)
- go-puller handles the request and pull your repo
### Usage
#### using binary:
```
# build the binary (you need to have `go` installed):
CGO_ENABLED=0 go build -a -installsuffix cgo -o go-puller .
# run the binary in your repo directory
REPO_PATH=$(pwd) go-puller
```
#### using docker (preferred):
```
docker run --rm -v $(pwd):/repo -p 9999:9999 wzulfikar/go-puller
```
---
above commands will make go-puller available at localhost:9999. once the server is running, you can use simple `curl` to test if the puller can handle the request:
```
curl localhost:9999
```