2 Development
Hunter Long edited this page 4 years ago

Useful Codebase

Deployment Process

Statping is a pretty cool server for monitoring your services. The way we deploy might be a little cooler though. Statping is using the most bleeding edge technology to release updates and distribute binary files automatically.

  1. Source code commits get pushed to Github
  2. go.rice will compile all the static assets into 1 file (rice-box.go in source)
  3. SASS will generate a compiled version of the CSS.
  4. Statping Help page is generated by cloning the Wiki repo using go generate.
  5. Travis-CI tests the Golang application.
  6. Travis-CI tests the Statping API using Postman.
  7. If all tests are successful, Travis-CI will compile the binaries using xgo.
  8. Binaries are code signed using the official PGP key and compressed.
  9. Docker receives a trigger to build for the latest tag.
  10. Travis-CI uploads the latest release as a tagged version on Github.
  11. Travis-CI updates the homebrew-statping repo with the latest version.

And that's it! Statping is ready to be shipped and installed.