Commit 92ce7ac3 authored by Hedda Marie Westlin's avatar Hedda Marie Westlin
Browse files

Update .gitlab-ci.yml

parent da33f2ba
Pipeline #792 passed with stages
in 35 seconds
stages:
- build
- test
- deploy_test
- deploy
image_build:
......@@ -17,7 +18,7 @@ code_test:
- cat main.py
deploy_test:
stage: test
stage: deploy_test
script:
- docker run -d -p 80 --name myfastapi-test-$CI_PIPELINE_ID fastapi:$CI_PIPELINE_ID
- sleep 10 && curl $(ifconfig ens3 | grep "inet " | sed -e 's/.* inet //g' | sed -e 's/ .*//g'):$(docker port myfastapi-test-$CI_PIPELINE_ID | grep 0.0.0 | grep "80/tcp" | sed -e 's/.*://g')
......
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