mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
Add user fixtures
This commit is contained in:
parent
72e92c9b54
commit
3e4279ace4
5 changed files with 98 additions and 2 deletions
40
.github/workflows/loaddata.yaml
vendored
Normal file
40
.github/workflows/loaddata.yaml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: Reset database
|
||||
|
||||
# This workflow can be run from the CLI
|
||||
# gh workflow run loaddata.yaml -f environment=staging
|
||||
# OR
|
||||
# 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
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
environment:
|
||||
type: choice
|
||||
description: Where should we load data
|
||||
options:
|
||||
- staging
|
||||
|
||||
jobs:
|
||||
reset-db-staging:
|
||||
if: ${{ github.event.inputs.environment == 'staging' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Delete existing data for staging
|
||||
uses: 18f/cg-deploy-action@main
|
||||
with:
|
||||
cf_username: ${{ secrets.CF_USERNAME }}
|
||||
cf_password: ${{ secrets.CF_PASSWORD }}
|
||||
cf_org: cisa-getgov-prototyping
|
||||
cf_space: staging
|
||||
full_command: "cf run-task getgov-staging --wait --command 'python manage.py flush' --name flush"
|
||||
|
||||
- name: Load fake data for staging
|
||||
uses: 18f/cg-deploy-action@main
|
||||
with:
|
||||
cf_username: ${{ secrets.CF_USERNAME }}
|
||||
cf_password: ${{ secrets.CF_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"
|
2
.github/workflows/migrate.yaml
vendored
2
.github/workflows/migrate.yaml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Run Migrations
|
||||
name: Run migrations
|
||||
|
||||
# This workflow can be run from the CLI
|
||||
# gh workflow run migrate.yaml -f environment=sandbox
|
||||
|
|
2
.github/workflows/security-check.yaml
vendored
2
.github/workflows/security-check.yaml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Security Checks
|
||||
name: Security checks
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue