Commit 16afe872 authored by Håkon Ay's avatar Håkon Ay
Browse files

Update .gitlab-ci.yml

parent f8bbb158
Pipeline #771 passed with stages
in 20 seconds
......@@ -21,7 +21,7 @@ deploy_test:
stage: test
script:
- docker run -d -p 10087:80 --name myfastapi-test-$CI_PIPELINE_ID fastapi:$CI_PIPELINE_ID
- sleep 10 && curl $(hostname -I | awk '{print$1}'):$(sudo docker inspect myfastapi-test-$CI_PIPELINE_ID | grep HostPort | sort | uniq | grep -o [0-9]*)
- sleep 5 && curl $(hostname -I | awk '{print$1}'):$(sudo docker inspect myfastapi-test-$CI_PIPELINE_ID | grep HostPort | sort | uniq | grep -o [0-9]*)
- docker stop myfastapi-test-$CI_PIPELINE_ID
- docker rm myfastapi-test-$CI_PIPELINE_ID
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment