Skip to content

Commit

Permalink
Merge pull request #2984 from DFE-Digital/feature/1987-refresh-db
Browse files Browse the repository at this point in the history
Added scheduled DB refresh
  • Loading branch information
temitope777 authored Oct 2, 2023
2 parents 478406d + 0409f4d commit dfe7304
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/database-copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Copy PAAS databases to AKS

on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *' # 02:00 UTC

jobs:
restore_db:
name: Restore DB
strategy:
matrix:
environment: [staging, production]
max-parallel: 1
uses: ./.github/workflows/paas_to_aks_db_backup_and_restore_manual.yml
with:
environment: ${{ matrix.environment }}
secrets: inherit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Backup and restore Postgres DB from PAAS to AKS
on:
workflow_call:
inputs:
environment:
type: string
workflow_dispatch:
inputs:
environment:
Expand Down

0 comments on commit dfe7304

Please sign in to comment.