Add test/build/deploy stages to pipeline
Whenever you push to remote now, the CI server will:
- install repo dependencies
- do tests (currently just linting)
- do a build
Whenever a merge to master occurs, apparently there is a way to manually trigger the 'deploy' stage, which we will make.
That stage will do a recursive copy / rsync to another location, wherever nn.adamprocter.co.uk is being hosted, possibly the same machine even. After copying, it'll run 'yarn serve' and our prod site will receive the fresh copy of master and be fully updated.
Eventually, I'd like to have that part run in duplicate / haproxy, so we can take one half down and update it, while the other half is still up. No downtime during deploys.