2018-05-29 03:52:42 +00:00
|
|
|
- name: Deploy Mojo JoJo
|
|
|
|
hosts: dockerhosts
|
|
|
|
vars_files:
|
|
|
|
- mojo-vars-vault.yml
|
2018-05-22 03:26:12 +00:00
|
|
|
remote_user: josiah
|
|
|
|
tasks:
|
|
|
|
- name: Pull latest version from github
|
|
|
|
command: cd ~/mojojojo-bot && git pull
|
|
|
|
- name: Build from the latest version
|
|
|
|
command: cd ~/mojojojo-bot && docker build -t mojo -f docker/dockerfile .
|
|
|
|
- name: Run the newly built docker container
|
2018-05-29 04:26:54 +00:00
|
|
|
command: docker container run --restart "always" mojo -e "SLACK_BOT_TOKEN={{ VAULT_SLACK_BOT_TOKEN }}"
|