From c61f9e0adb582df1f6314636296fd4e6fee17daa Mon Sep 17 00:00:00 2001 From: bacon Date: Mon, 3 Mar 2025 22:00:33 +0300 Subject: [PATCH] fixes --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6044c1..2dd2e1c 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,11 +33,11 @@ pre_push: script: - echo "Running container to test image" - echo "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG" - - docker run -d --name test_container $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG + - docker run -d --name test_container -p 5060:5050 $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG - | echo "Waiting for the application to start..." sleep 10 - if curl --fail http://localhost:5050/health; then + if curl --fail http://localhost:5060/health; then echo "Healthcheck passed" else echo "Healthcheck failed, stopping push"