From 7fc631463edf3a75d86b0b1d02edbdb25de52655 Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 7 Oct 2018 13:57:45 -0500 Subject: [PATCH] Update grep to look for Up OR Restarting. --- deployments/mojobot/mojo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/mojobot/mojo.yml b/deployments/mojobot/mojo.yml index d20198b..77ecf6d 100644 --- a/deployments/mojobot/mojo.yml +++ b/deployments/mojobot/mojo.yml @@ -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 'Up' | awk '{print $1}' | xargs docker kill + shell: docker ps | grep -e 'Up|Restarting' | 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 mojo