Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkata Challa committed Apr 25, 2024
1 parent 557b777 commit a2bd985
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/database-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit a2bd985

Please sign in to comment.