diff --git a/.github/workflows/database-copy.yml b/.github/workflows/database-copy.yml index 4e2b0699..3954bef8 100644 --- a/.github/workflows/database-copy.yml +++ b/.github/workflows/database-copy.yml @@ -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: diff --git a/.github/workflows/restore-paas-db-to-aks.yml b/.github/workflows/restore-paas-db-to-aks.yml index a593409b..f5dccbd7 100644 --- a/.github/workflows/restore-paas-db-to-aks.yml +++ b/.github/workflows/restore-paas-db-to-aks.yml @@ -11,9 +11,10 @@ on: type: choice options: - dev + - test env: - BACKUP_ARTIFACT_NAME: dev-backup + BACKUP_ARTIFACT_NAME: ${{ inputs.environment }}-backup jobs: backup: @@ -78,6 +79,9 @@ jobs: dev) echo "ENVIRONMENT_AKS=development_aks" >> $GITHUB_OUTPUT ;; + test) + echo "ENVIRONMENT_AKS=test_aks" >> $GITHUB_OUTPUT + ;; *) echo "unknown cluster" ;; @@ -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" ;;