Update clone-db.yaml

This commit is contained in:
Matt-Spence 2024-11-14 10:24:21 -06:00 committed by GitHub
parent dc2ade2851
commit c3fb2dd99c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,11 @@ 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: Cleanup
if: always()
run: cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f