Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Jul 15, 2024
1 parent 5fc4076 commit 0013099
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/database_backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,34 @@ on:
# - cron: "0 3 * * *"

jobs:
backup:
name: Backup AKS Database (production)
# backup:
# name: Backup AKS Database (production)
# runs-on: ubuntu-latest
# environment: production-aks

# steps:
# - name: Backup postgres
# uses: DFE-Digital/github-actions/backup-postgres@1914-claims-db-backup
# 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

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

steps:
- name: Backup postgres
uses: DFE-Digital/github-actions/backup-postgres@1914-claims-db-backup
- 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
backup-file: capt_prod_2024-07-12.sql.gz

0 comments on commit 0013099

Please sign in to comment.