Skip to content
Snippets Groups Projects
Commit decd5154 authored by LAMRINI Houda's avatar LAMRINI Houda
Browse files

Update .gitlab-ci.yml file

parent 93692546
No related branches found
No related tags found
No related merge requests found
Pipeline #47513 failed
stages:
- test
- build_stage
- deploy_stage
test:
stage: test
image: python:3.8
before_script:
- pip install -r requirements.txt
script:
- python -m unittest discover -s tests
# Job de construction de l'image Docker
build:
stage: build_stage
......@@ -17,5 +26,6 @@ deploy:
script:
- apt-get update
- apt-get install -y docker.io
- docker stop mdpappcontainerr || true # Arrête le container s'il existe déjà
- docker rm mdpappcontainerr || true # Supprime l'ancien container s'il existe
- docker run -d --name mdpappcontainerr -p 5001:5000 pyapp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment