Update clone-db.yaml

This commit is contained in:
Matt-Spence 2024-11-14 12:39:48 -06:00 committed by GitHub
parent c3fb2dd99c
commit a3ffae28ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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