Skip to content

Commit

Permalink
Merge pull request #3047 from cisagov/ms/2901-cleanup-clone-workflow
Browse files Browse the repository at this point in the history
Update clone-staging.yaml
  • Loading branch information
Matt-Spence authored Nov 7, 2024
2 parents b42a22e + c8b61d4 commit ee3b568
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/clone-staging.yaml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down Expand Up @@ -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

0 comments on commit ee3b568

Please sign in to comment.