Release details
This commit is contained in:
parent
e6712b4ee0
commit
212ec6394c
3 changed files with 26 additions and 1 deletions
|
@ -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"
|
||||
```
|
||||
|
|
|
@ -16,3 +16,7 @@
|
|||
- frontend
|
||||
- nodejs
|
||||
- setup
|
||||
|
||||
- include: release.yaml
|
||||
tags:
|
||||
- release
|
||||
|
|
16
ansible/roles/web/tasks/release.yaml
Normal file
16
ansible/roles/web/tasks/release.yaml
Normal 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"
|
Loading…
Reference in a new issue