Refactor fixtures from JSON to Python

This commit is contained in:
Seamus Johnston 2022-12-21 10:05:03 -06:00
parent ba7c0b9e8d
commit df265b10f8
No known key found for this signature in database
GPG key ID: 2F21225985069105
10 changed files with 426 additions and 270 deletions

View file

@ -6,7 +6,7 @@ name: Reset database
# cf run-task getgov-staging --wait \
# --command 'python manage.py flush' --name flush
# cf run-task getgov-staging --wait \
# --command 'python manage.py loaddata registrar/fixtures/*' --name loaddata
# --command 'python manage.py load' --name loaddata
on:
workflow_dispatch:
inputs:
@ -24,8 +24,8 @@ jobs:
- name: Delete existing data for staging
uses: 18f/cg-deploy-action@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_username: ${{ secrets.CF_STAGING_USERNAME }}
cf_password: ${{ secrets.CF_STAGING_PASSWORD }}
cf_org: cisa-getgov-prototyping
cf_space: staging
full_command: "cf run-task getgov-staging --wait --command 'python manage.py flush' --name flush"
@ -37,4 +37,4 @@ jobs:
cf_password: ${{ secrets.CF_STAGING_PASSWORD }}
cf_org: cisa-getgov-prototyping
cf_space: staging
full_command: "cf run-task getgov-staging --wait --command 'python manage.py loaddata registrar/fixtures/*' --name loaddata"
full_command: "cf run-task getgov-staging --wait --command 'python manage.py load' --name loaddata"