mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 18:39:21 +02:00
Update clone-staging.yaml
This commit is contained in:
parent
b42a22e0b7
commit
c8b61d405c
1 changed files with 6 additions and 8 deletions
14
.github/workflows/clone-staging.yaml
vendored
14
.github/workflows/clone-staging.yaml
vendored
|
@ -1,11 +1,9 @@
|
|||
name: Clone Staging Database
|
||||
|
||||
on:
|
||||
# these will be uncommented after testing
|
||||
# ----
|
||||
# schedule:
|
||||
# # Run daily at 2:00 PM EST
|
||||
# - cron: '0 * * * *'
|
||||
schedule:
|
||||
# Run daily at 2:00 PM EST
|
||||
- cron: '0 * * * *'
|
||||
# Allow manual triggering
|
||||
workflow_dispatch:
|
||||
|
||||
|
@ -44,6 +42,6 @@ jobs:
|
|||
# clone from source to destination
|
||||
cf target -s $SOURCE_ENVIRONMENT
|
||||
cg-manage-rds clone getgov-$DESTINATION_ENVIRONMENT-database getgov-$SOURCE_ENVIRONMENT-database
|
||||
|
||||
# unshare the service
|
||||
cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: cf unshare-service getgov-$DESTINATION_ENVIRONMENT-database -s $SOURCE_ENVIRONMENT -f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue