From 85084a3e44c4ed2df190ef7ba14ed5e3c840c021 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 9 Oct 2023 19:18:58 -0300 Subject: [PATCH] Create and seed DB --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d245b18..a2617d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -152,6 +152,8 @@ deploy-prod: - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE rm -f - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE pull - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE up -d + - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE exec api python manage.py recreate_db + - docker compose -f docker-compose.yml --profile all --env-file $ENV_PROD_FILE exec api python manage.py seed_db needs: - job: deliver-dockerhub - job: preparation