mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 02:06:03 +02:00
Refactor fixtures from JSON to Python
This commit is contained in:
parent
ba7c0b9e8d
commit
df265b10f8
10 changed files with 426 additions and 270 deletions
8
.github/workflows/loaddata.yaml
vendored
8
.github/workflows/loaddata.yaml
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue