• Mathew Parker's avatar
    Add test/build/deploy stages to pipeline · 493de448
    Mathew Parker authored
    Whenever you push to remote now, the CI server will:
    1. install repo dependencies
    2. do tests (currently just linting)
    3. 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.
    493de448
Validating GitLab CI configuration… Learn more