deploy/README.md
author ymh <ymh.work@gmail.com>
Thu, 20 Sep 2018 18:45:04 +0200
changeset 15 799d0e9aa1dd
parent 8 24a3d661309f
permissions -rw-r--r--
Added tag 0.2.0 for changeset 521d1a8c7150

# build and deployment 

- install Ansible
- Create a new deployment profile: 
    - add a new deplyment host list by creating a `hosts/hosts.<profile>` file:
    - `cp hosts/hosts.tmpl hosts/hosts.<profile>`
    - define the profile vars: `cp group_vars/group_vars.yml.tmpl group_vars/<profile>.yml`, customize it
    - create the necessary host vars in `host_vars/<machine>/base.yml`. Use ansible vaults to edit them and do not expose any secret.
    - deploy with the command `deploy.sh`: `./deploy.sh <profile> <version>`

## Create new version
Launch the command:
- `set-version.sh <version>`
- commit, tag and push as needed.