chd/deployments/mojo.yml

12 lines
483 B
YAML
Raw Normal View History

2018-05-29 03:52:42 +00:00
- name: Deploy Mojo JoJo
hosts: dockerhosts
vars_files:
- mojo-vars-vault.yml
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:06:38 +00:00
command: docker container run --restart "always" mojo -e SLACK_BOT_TOKEN={{ VAULT_SLACK_BOT_TOKEN }}