mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Update clone-db.yaml
This commit is contained in:
parent
c3fb2dd99c
commit
a3ffae28ec
1 changed files with 9 additions and 4 deletions
13
.github/workflows/clone-db.yaml
vendored
13
.github/workflows/clone-db.yaml
vendored
|
@ -50,10 +50,15 @@ jobs:
|
|||
# clone from source to destination
|
||||
cf target -s $SOURCE_ENVIRONMENT
|
||||
cg-manage-rds clone getgov-$SOURCE_ENVIRONMENT-database getgov-$DESTINATION_ENVIRONMENT-database
|
||||
|
||||
# load fixtures in destination
|
||||
cf target -s $DESTINATION_ENVIRONMENT
|
||||
cf run-task getgov-staging --command 'python manage.py load' --name fixtures
|
||||
|
||||
- name: Load Fixtures
|
||||
uses: cloud-gov/cg-cli-tools@main
|
||||
with:
|
||||
cf_username: ${{ secrets.CF_STAGING_USERNAME }}
|
||||
cf_password: ${{ secrets.CF_STAGING_PASSWORD }}
|
||||
cf_org: cisa-dotgov
|
||||
cf_space: ${{ env.DESTINATION_ENVIRONMENT }}
|
||||
cf_command: "run-task getgov-staging --command 'python manage.py load' --name fixtures"
|
||||
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue