Commit 46446159 authored by Adrian Nilssen Nicolaisen's avatar Adrian Nilssen Nicolaisen
Browse files

Update .gitlab-ci.yml

parent 113422b1
Pipeline #826 passed with stages
in 34 seconds
......@@ -16,6 +16,14 @@ code_test:
- cd app
- cat main.py
deploy_test:
stage: 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')
- docker stop myfastapi-test-$CI_PIPELINE_ID
- docker rm myfastapi-test-$CI_PIPELINE_ID
container_deploy1:
stage: deploy
script:
......
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