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
|
name: Clone Staging Database
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# these will be uncommented after testing
|
schedule:
|
||||||
# ----
|
# Run daily at 2:00 PM EST
|
||||||
# schedule:
|
- cron: '0 * * * *'
|
||||||
# # Run daily at 2:00 PM EST
|
|
||||||
# - cron: '0 * * * *'
|
|
||||||
# Allow manual triggering
|
# Allow manual triggering
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -44,6 +42,6 @@ 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-$DESTINATION_ENVIRONMENT-database getgov-$SOURCE_ENVIRONMENT-database
|
cg-manage-rds clone getgov-$DESTINATION_ENVIRONMENT-database getgov-$SOURCE_ENVIRONMENT-database
|
||||||
|
- name: Cleanup
|
||||||
# unshare the service
|
if: always()
|
||||||
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