Skip to content

Restore backup to AKS Database #7

Restore backup to AKS Database

Restore backup to AKS Database #7

name: Restore backup to AKS Database
on:
workflow_dispatch:
inputs:
environment:
description: GitHub environment to backup and restore
type: choice
default: test
options:
- test
- dev
- production
jobs:
backup-and-restore:
name: ${{ github.event.inputs.environment }} backup and restore to aks
environment:
name: ${{ github.event.inputs.environment }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Backup and Restore action for ${{ inputs.environment }} to AKS test cluster
if: inputs.environment == 'test' || inputs.environment == 'dev'
id: backup_and_restore_env_test
uses: ./.github/workflows/actions/backup_and_restore/
with:
environment: ${{ github.event.inputs.environment }}
azure-credentials-paas: ${{ secrets.AZURE_CREDENTIALS }}
azure-credentials-aks: ${{ secrets.AZURE_CREDENTIALS_AKS_REVIEW }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
- name: Backup and Restore action for ${{ inputs.environment }} to AKS prod cluster
if: inputs.environment == 'production'
id: backup_and_restore_env_prod
uses: ./.github/workflows/actions/backup_and_restore/
with:
environment: ${{ github.event.inputs.environment }}
azure-credentials-paas: ${{ secrets.AZURE_CREDENTIALS }}
azure-credentials-aks: ${{ secrets.AZURE_CREDENTIALS_AKS_PROD }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}