Skip to content

Commit

Permalink
Add DB backup schedule for test env
Browse files Browse the repository at this point in the history
  • Loading branch information
johnake committed Sep 25, 2023
1 parent 4a86dbf commit bbf8f12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/database-copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Restore DB
strategy:
matrix:
environment: [dev]
environment: [dev, test]
max-parallel: 1
uses: ./.github/workflows/restore-paas-db-to-aks.yml
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/restore-paas-db-to-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ on:
type: choice
options:
- dev
- test

env:
BACKUP_ARTIFACT_NAME: dev-backup
BACKUP_ARTIFACT_NAME: ${{ inputs.environment }}-backup

jobs:
backup:
Expand Down Expand Up @@ -78,6 +79,9 @@ jobs:
dev)
echo "ENVIRONMENT_AKS=development_aks" >> $GITHUB_OUTPUT
;;
test)
echo "ENVIRONMENT_AKS=test_aks" >> $GITHUB_OUTPUT
;;
*)
echo "unknown cluster"
;;
Expand Down Expand Up @@ -115,6 +119,11 @@ jobs:
echo "cluster_name=$test_cluster_name" >> $GITHUB_ENV
echo "app_name=find-a-lost-trn-development" >> $GITHUB_ENV
;;
test_aks)
echo "cluster_rg=$test_cluster_rg" >> $GITHUB_ENV
echo "cluster_name=$test_cluster_name" >> $GITHUB_ENV
echo "app_name=find-a-lost-trn-test" >> $GITHUB_ENV
;;
*)
echo "unknown cluster"
;;
Expand Down

0 comments on commit bbf8f12

Please sign in to comment.