From 8dde7e0b79e5e17348cf856d9c28e552063a4a0d Mon Sep 17 00:00:00 2001 From: Jiwan Ahn Date: Mon, 2 Oct 2023 03:25:24 +0900 Subject: [PATCH] :construction_worker: feat: check if container is running --- .github/workflows/docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 67b685c..2dc08c7 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -76,4 +76,5 @@ jobs: echo "TZ=Asia/Seoul" >> env.list sudo docker run -d --env-file env.list --name boj-bot ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:latest - sudo rm -rf env.list + sleep 10s + sudo docker ps | grep ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:latest