Update deployment documentation.

This commit is contained in:
Luke Murphy 2017-11-05 15:35:46 +01:00
parent d16aec42bd
commit a21c093a5a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -21,15 +21,35 @@ Please see [CONTRIBUTING.md] for the juicy details.
# Make A New Release # Make A New Release
Firstly, you'll need to tag and push the latest HEAD with: [Tag a new commit] following [semantic versioning] and send it upstream with:
[Tag a new commit]: https://git-scm.com/book/en/v2/Git-Basics-Tagging
[semantic versioning]: http://semver.org/
```bash ```bash
$ git tag -a <YOUR-VERSION-NUMBER> $(git rev-parse HEAD) $ COMMIT=$(git rev-parse HEAD)
$ TAG=6.6.6 # enter your new tag
$ git tag -a $TAG $COMMIT
$ git push upstream master --tags $ git push upstream master --tags
``` ```
Then make a release with: You can also use the [Gitlab tags UI] for this.
```bash [Gitlab tags UI]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/tags
$ make release
Our [deploy] CI stage will push the new site to [the production branch].
[deploy]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/blob/d16aec42bd2ddd7449f55d9f06b03499cc660b22/.gitlab-ci.yml#L17
[the production branch]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/tree/production
Watch the [CI/CD pipeline] to see that it builds successfully.
[CI/CD pipeline]: https://gitlab.com/autonomic-cooperative/autonomic-cooperative.gitlab.io/pipelines
Then head over to [fullyautomatedluxuryinfrastructure] and run:
[fullyautomatedluxuryinfrastructure]: https://gitlab.com/autonomic-cooperative/fullyautomatedluxuryinfrastructure
``` bash
$ ansible-playbook orgs/autonomic/gitlabpages.yml
``` ```