Commit 2d1ed639 authored by Olga Dilen's avatar Olga Dilen
Browse files

Add new file

parent 3f751d66
Pipeline #647 failed with stages
in 3 seconds
stages:
- build
- test
- deploy
image_build:
stage: build
script:
- echo "Stage build, Dockerfile:"
- cat Dockerfile
- docker build -t fastapi:$CI_PIPELINE_ID .
code_test:
stage: test
script:
- cd app
- cat main.py
container_deploy1:
stage: deploy
script:
- docker run -d -p 80 --name myfastapi-w1-$CI_PIPELINE_ID fastapi:$CI_PIPELINE_ID
- docker ps
- docker stop myfastapi-w1-$CI_PIPELINE_ID
- docker rm myfastapi-w1-$CI_PIPELINE_ID
\ No newline at end of file
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