From a2bd9855be8f3ec75f66fedbdd70f38864a11e5f Mon Sep 17 00:00:00 2001 From: Venkata Challa Date: Thu, 25 Apr 2024 17:08:27 +0100 Subject: [PATCH] test --- .github/workflows/database-backup.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/database-backup.yml b/.github/workflows/database-backup.yml index e7c06aef9..704dca19f 100644 --- a/.github/workflows/database-backup.yml +++ b/.github/workflows/database-backup.yml @@ -33,7 +33,7 @@ jobs: # if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.overwriteThisMorningsBackup == 'true') }} runs-on: ubuntu-latest environment: - name: production + name: staging services: postgres: image: postgres:11.10 @@ -50,7 +50,7 @@ jobs: - name: Set KV environment variables run: | - tf_vars_file=terraform/application/config/production.tfvars.json + tf_vars_file=terraform/application/config/staging.tfvars.json echo "key_vault_name=$(jq -r '.infra_key_vault_name' ${tf_vars_file})" >> $GITHUB_ENV echo "key_vault_infra_secret_name=$(jq -r '.infra_key_infra_secret_name' ${tf_vars_file})" >> $GITHUB_ENV echo "namespace=$(jq -r '.namespace' ${tf_vars_file})" >> $GITHUB_ENV @@ -81,7 +81,7 @@ jobs: - name: K8 setup shell: bash run: | - make ci production get-cluster-credentials + make ci staging get-cluster-credentials make install-konduit - name: Setup postgres client @@ -92,16 +92,16 @@ jobs: - name: Backup Prod DB run: | - bin/konduit.sh -t 7200 itt-mentor-services-production -- pg_dump -E utf8 --clean --if-exists --no-owner --verbose --no-password -f ${BACKUP_FILE_NAME}.sql + bin/konduit.sh -t 7200 itt-mentor-services-staging -- pg_dump -E utf8 --clean --if-exists --no-owner --verbose --no-password -f ${BACKUP_FILE_NAME}.sql tar -cvzf ${BACKUP_FILE_NAME}.tar.gz ${BACKUP_FILE_NAME}.sql - name: Set up environment variables shell: bash run: | - echo "STORAGE_ACCOUNT_RG=s189p01-ittms-pd-rg" >> $GITHUB_ENV + echo "STORAGE_ACCOUNT_RG=s189p01-ittms-stg-rg" >> $GITHUB_ENV SERVICE_SHORT=ittms - echo "STORAGE_ACCOUNT_NAME=s189p01ittmspdtfsa" >> $GITHUB_ENV + echo "STORAGE_ACCOUNT_NAME=s189p01ittmsstgtfsa" >> $GITHUB_ENV - name: Set Connection String run: |