github-actions

PTR Postgres

Perform a point in time restore of an existing Azure Postgresql server database. Restore will be performed to a new server, and will not affect the current server in any way. 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: PTR postgres
        uses: DFE-Digital/github-actions/ptr-postgres@master
        with:
          resource-group: s189t01-app-rg
          source-server: s189t01-db
          new-server: s189t01-db-new
          restore-time: 2024-07-24T06:00:00
          cluster: test
          azure-client-id: $
          azure-subscription-id: $
          azure-tenant-id: $