/GoDeployServer

A little web server in Go to redeploy apps in GitHub push

Primary LanguageGoGNU General Public License v3.0GPL-3.0

GoDeployServer

A little web server in Go to redeploy apps in GitHub push.

Use

  1. Modify the code to add your paths and your management scripts
  2. Run go build
  3. sudo cp getLastCommit /usr/local/bin
  4. sudo cp godeploy.service /etc/systemd/system/godeploy.service
  5. Run the service systemctl start godeploy.service

PostInfo

I'm using the PostInfo struct to process json payload of the GitHub webhook.