From f12effeb0276d91f0ced36254ba9d246043bc1b7 Mon Sep 17 00:00:00 2001 From: Andrey Danilov <63206013+Louffty@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:33:51 +0300 Subject: [PATCH] fix: deploy.yml --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4beae73..215f2dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,9 +43,9 @@ jobs: port: 1526 script: | cd /home/backend/proj/ - docker compose down - docker compose pull battlecodes/backend-battlecodes:latest - docker compose up -d - + docker pull battlecodes/backend-battlecodes:latest + docker stop backend-container || true + docker rm backend-container || true + docker run --env-file /home/backend/proj/.env -d --name backend-container --network host battlecodes/backend-battlecodes:latest