|
1 |
| -# Steps |
2 |
| - |
3 |
| -When all tests done and successful and PR is approved, follow these steps: |
4 |
| - |
5 |
| -1. Bump version: |
6 |
| - 1. Merge branch to master |
7 |
| - 1. In your local git version of this repo |
8 |
| - 1. Checkout master by: `git checkout master` |
9 |
| - 1. Update local branch by: `git pull origin master` |
10 |
| - 1. Bumpversion according to specifications, eg. `bumpversion <patch/minor/major>` |
11 |
| - 1. Push commit directly to master `git push` |
12 |
| - 1. Push commit directly to master `git push --tag` |
13 |
| -1. Deploy on the appropriate server(s): |
14 |
| - 1. Deploy on hasta: |
15 |
| - 1. Deploy master to stage |
16 |
| - 1. `ssh hasta` |
17 |
| - 1. `us` |
18 |
| - 1. Request stage environment `paxa` and follow instructions |
19 |
| - 1. `bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-housekeeper-stage.sh master` |
20 |
| - 1. Make sure that installation was successful |
21 |
| - 1. `down` |
22 |
| - 1. Deploy master to production |
23 |
| - 1. `up` |
24 |
| - 1. `bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-housekeeper-prod.sh` |
25 |
| - 1. Make sure that installation was successful |
26 |
| -1. Take a screenshot and post as a comment on the PR. Screenshot should include environment and that it succeeded |
| 1 | +# Deployment guide |
| 2 | +This includes instructions for deploying Houskeeper in the Clinical Genomics :hospital: setting. General instructions for deployment is in the [development guide][development-guide] |
| 3 | + |
| 4 | +## Branch model |
| 5 | + |
| 6 | +Housekeeper if following the [GitHub flow][gh-flow] branching model which means that every time a PR is merged to master a new release is created. |
| 7 | + |
| 8 | +## Requirements |
| 9 | + |
| 10 | +- `bumpversion`, install with `pip install bumpversion` |
| 11 | + |
| 12 | +## Steps |
| 13 | + |
| 14 | +1. Check in the PR if the change is a minor, mayor or patch: ![Version][pr-version] |
| 15 | +1. Make sure you are on `master` (`git checkout master`) and bump version according to step 1, example: `bumpversion minor` |
| 16 | +1. Push the commit: `git push` |
| 17 | +1. Push the tag: `git push --tags` |
| 18 | +1. First deploy on stage so log into hasta and run: |
| 19 | + - `us` |
| 20 | + - `bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-housekeeper-stage.sh master` |
| 21 | +1. Deploy in productions by running the following commands: |
| 22 | + - `down` |
| 23 | + - `up` |
| 24 | + - `bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-housekeeper-prod.sh` |
| 25 | +1. Take a screen shot that includes the name of the environment and publish it as a comment on the PR: ![Deployed][confirm-deploy] |
| 26 | +1. Great job :whale2: |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +[pr-version]: docs/img/version.png |
| 33 | +[confirm-deploy]: docs/img/confirm_deploy.png |
| 34 | +[development-guide]: http://www.clinicalgenomics.se/development/publish/prod/ |
| 35 | +[gh-flow]: http://www.clinicalgenomics.se/development/dev/models/#rolling-release-github-flow |
0 commit comments