fixes
This commit is contained in:
@@ -33,11 +33,11 @@ pre_push:
|
|||||||
script:
|
script:
|
||||||
- echo "Running container to test image"
|
- echo "Running container to test image"
|
||||||
- echo "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG"
|
- 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..."
|
echo "Waiting for the application to start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
if curl --fail http://localhost:5050/health; then
|
if curl --fail http://localhost:5060/health; then
|
||||||
echo "Healthcheck passed"
|
echo "Healthcheck passed"
|
||||||
else
|
else
|
||||||
echo "Healthcheck failed, stopping push"
|
echo "Healthcheck failed, stopping push"
|
||||||
|
|||||||
Reference in New Issue
Block a user