Skip to content

Commit

Permalink
Merge pull request #3007 from DFE-Digital/1914-claims-migrate-product…
Browse files Browse the repository at this point in the history
…ion-restore

[1914] Database restore workflow
  • Loading branch information
saliceti authored Jul 15, 2024
2 parents f2a845f + da2d7b8 commit 0f835c6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/database_restore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Restore Database from Azure Storage
concurrency: build_and_deploy_main

on:
workflow_dispatch:
inputs:
confirm:
description: Set to true to restore nightly backup to production
required: true
default: 'false'
type: choice
options:
- 'false'
- 'true'

jobs:
restore:
name: Restore AKS Database (production)
runs-on: ubuntu-latest
environment: production-aks

steps:
- name: Restore postgres
uses: DFE-Digital/github-actions/restore-postgres-backup@master
with:
storage-account: s189p01captdbbkppdsa
resource-group: s189p01-capt-pd-rg
app-name: claim-additional-payments-for-teaching-production-web
cluster: production
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
backup-file: capt_prod_$(date +"%F").sql.gz

0 comments on commit 0f835c6

Please sign in to comment.