Skip to content
Snippets Groups Projects
Commit 09c7f06d authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

ci

parent 0223972e
No related branches found
No related tags found
1 merge request!6Ci
Pipeline #43671 failed
image: python:3.9
image: docker:19.03.0
variables:
MYSQL_DATABASE: $MYSQL_DATABASE
......@@ -97,13 +97,10 @@ test:
WEB_ROOT: http://localhost:3000
before_script:
- source ./venv/bin/activate
- apt update -y && apt upgrade -y
- apt install -y screen
script:
- cd ./backend
- screen -S new_screen
- python -m uvicorn main:app --port=80 --host 0.0.0.0
- screen -d new_screen
- docker build -t app ./backend
- docker run --detach -p 8000:80 app --env-file ./backend/.env
- curl "http://localhost:8000/api/health"
#######################################################################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment