github-actions

Restore Postgres Backup

Restore an Azure Postgresql server database from a previous backup that is stored in an Azure storage account Mainly designed to be used in DR and DR test procedures

OIDC

Federated credentials must be set up to allow the action to authenticate to Azure and kubernetes

Inputs

Example

jobs:
  main:
    ...
    permissions:
      id-token: write # Required for OIDC authentication to Azure
      ...

    steps:
      - name: Restore postgres backup
        uses: DFE-Digital/github-actions/restore-postgres-backup@master
        with:
          storage-account: myserviceqabkpsa
          resource-group: s189t01-app-rg
          app-name: myservice-qa
          cluster: test
          namespace: $
          azure-client-id: $
          azure-subscription-id: $
          azure-tenant-id: $
          backup-file: backup290224