Skip to content
Snippets Groups Projects
Commit dc1afdf3 authored by RENAUX Anna's avatar RENAUX Anna
Browse files

Update .gitlab-ci.yml file

parent f68626f0
No related branches found
No related tags found
No related merge requests found
stages:
- build
- test
- deploy
variables:
DOCKER_IMAGE_TAG: latest
before_script:
- apt-get update -qy
- apt-get install -y python3 python3-pip
build:
stage: build
script:
- pip3 install -r requirements.txt
test:
stage: test
script:
- python3 -m unittest discover
deploy:
stage: deploy
script:
- docker build -t my-python-app:$DOCKER_IMAGE_TAG .
- docker run -p 9090:9090 my-python-app:$DOCKER_IMAGE_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment