From 69889dfaf5b3e8a9813c44b73e4aa8d749653f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B0=D1=80=D0=B8=D0=BD=20=D0=9C=D0=B0=D0=BA=D1=81?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=9E=D0=BB=D0=B5=D0=B3=D0=BE=D0=B2=D0=B8=D1=87?= Date: Sun, 5 Oct 2025 19:07:48 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f72214d..9ffae6a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,6 +81,8 @@ deploy_to_production: docker rm -f ${APP_NAME} || true; echo 'Starting new container...'; - docker run -d -p 8000:8000 --name ${APP_NAME} --restart always \ - ${NEXUS_REGISTRY}/${APP_NAME}:${CI_COMMIT_SHORT_SHA}; - " \ No newline at end of file + docker run -d \ + --name $APP_NAME \ + -p 8000:8000 \ + --restart unless-stopped \ + $NEXUS_REGISTRY/$APP_NAME:$CI_COMMIT_SHORT_SHA \ No newline at end of file