Update clone-staging.yaml

This commit is contained in:
Matt-Spence 2024-11-07 13:29:59 -06:00 committed by GitHub
parent b42a22e0b7
commit c8b61d405c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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