A little web server in Go to redeploy apps in GitHub push.
- Modify the code to add your paths and your management scripts
- Run
go build
sudo cp getLastCommit /usr/local/bin
sudo cp godeploy.service /etc/systemd/system/godeploy.service
- Run the service
systemctl start godeploy.service
I'm using the PostInfo struct to process json payload of the GitHub webhook.