Create and seed DB

This commit is contained in:
Santiago Lo Coco 2023-10-09 19:18:58 -03:00
parent c5e1c96e36
commit 85084a3e44
1 changed files with 2 additions and 0 deletions

View File

@ -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