Change docker kill line; was looking for anything that was up before
This commit is contained in:
parent
22b7f6bd39
commit
3704648532
@ -18,6 +18,6 @@
|
||||
shell: cd ~/mojojojo-bot && docker build -t mojo -f docker/dockerfile .
|
||||
- name: Check if there are any existing mojo containers running and kill it
|
||||
# this has to be a shell because command: isn't interactive
|
||||
shell: docker ps | grep -E 'Up|Restarting' | awk '{print $1}' | xargs docker kill
|
||||
shell: docker ps | grep 'mojo' | awk '{print $1}' | xargs docker kill
|
||||
- name: Run the newly built docker container
|
||||
command: docker container run -e "SLACK_BOT_TOKEN={{ VAULT_SLACK_BOT_TOKEN }}" --restart "always" -d --mount source=towervol,target=/shared/ mojo
|
||||
|
Loading…
Reference in New Issue
Block a user