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: variables:
MYSQL_DATABASE: $MYSQL_DATABASE MYSQL_DATABASE: $MYSQL_DATABASE
...@@ -97,13 +97,10 @@ test: ...@@ -97,13 +97,10 @@ test:
WEB_ROOT: http://localhost:3000 WEB_ROOT: http://localhost:3000
before_script: before_script:
- source ./venv/bin/activate - source ./venv/bin/activate
- apt update -y && apt upgrade -y
- apt install -y screen
script: script:
- cd ./backend - cd ./backend
- screen -S new_screen - docker build -t app ./backend
- python -m uvicorn main:app --port=80 --host 0.0.0.0 - docker run --detach -p 8000:80 app --env-file ./backend/.env
- screen -d new_screen
- curl "http://localhost:8000/api/health" - 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