diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..48167cf --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +stages: + - test + - deploy + +test: + stage:test + script: + -docker-compose -f docker-compose.stag.yml up --build -d + -docker exec secfit_stag_backend python manage.py test tests + -docker-compose -f docker-compose.stag.yml down + only: + -gargi-production + +deploy: + stage: deploy + script: + -docker-compose -f docker-compose.yml up --build -d + only: + -gargi-production \ No newline at end of file