From f79df8b684cb67579491641a3b37d0653e681f7f Mon Sep 17 00:00:00 2001 From: CodingGirlGargi Date: Mon, 24 Mar 2025 22:15:48 +0100 Subject: [PATCH] Added Gitlab CI configuration --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml 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