Release details

This commit is contained in:
Oleg Lavrovsky 2017-04-26 15:37:15 +02:00
parent e6712b4ee0
commit 212ec6394c
3 changed files with 26 additions and 1 deletions

View File

@ -94,4 +94,9 @@ The order of deployment is:
- site.yaml
- harden.yaml
For further deployment and system maintenance we have a `Makefile` which automates Docker Compose tasks.
For further deployment and system maintenance we have a `Makefile` which automates Docker Compose tasks. This should be converted to use [Ansible Container](http://docs.ansible.com/ansible-container/getting_started.html). In the meantime, start a release with Ansible, then complete it using `make`, i.e.:
```
ansible-playbook -s ansible/site.yaml -i ansible/inventories/production --tags release
ssh -i .keys/ansible.pem ansible@<server-ip> "cd <release_dir> && make"
```

View File

@ -16,3 +16,7 @@
- frontend
- nodejs
- setup
- include: release.yaml
tags:
- release

View File

@ -0,0 +1,16 @@
---
- name: Checkout code branch from git
git:
repo: 'https://github.com/datalets/public-health-ch'
dest: "{{ release_dir }}"
force: yes
- name: Copy Docker site configuration
template:
src: docker-compose.j2
dest: "{{ release_dir }}/docker-compose.yml"
- name: Update Docker site
debug:
msg: "Please run 'make' in {{ release_dir }} to finish updating the site"