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