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
dc2ade2851
commit
c3fb2dd99c
1 changed files with 5 additions and 0 deletions
5
.github/workflows/clone-db.yaml
vendored
5
.github/workflows/clone-db.yaml
vendored
|
@ -50,6 +50,11 @@ jobs:
|
||||||
# clone from source to destination
|
# clone from source to destination
|
||||||
cf target -s $SOURCE_ENVIRONMENT
|
cf target -s $SOURCE_ENVIRONMENT
|
||||||
cg-manage-rds clone getgov-$SOURCE_ENVIRONMENT-database getgov-$DESTINATION_ENVIRONMENT-database
|
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
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
run: cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f
|
run: cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue