Skip to content

Commit

Permalink
Migrate rsm data and database
Browse files Browse the repository at this point in the history
  • Loading branch information
Neill Turner committed Nov 21, 2024
1 parent db53b42 commit 0033972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/database-backup-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
shell: bash
run: |
tf_vars_file="terraform/workspace_variables/${{ inputs.environment }}.tfvars.json"
global_config_file="global_config/${{ inputs.environment }}.tfvars.json"
echo "KEY_VAULT_NAME=$(jq -r '.key_vault_name' ${tf_vars_file})" >> $GITHUB_ENV
echo "RESOURCE_PREFIX=$(jq -r '.resource_prefix' ${tf_vars_file})" >> $GITHUB_ENV
echo "ENV=$(jq -r '.environment_name' ${tf_vars_file})" >> $GITHUB_ENV
echo "RESOURCE_GROUP_NAME=$(jq -r '.resource_group_name' ${tf_vars_file})" >> $GITHUB_ENV
echo "BACKUP_STORAGE_GROUP=$(jq -r '.AZURE_RESOURCE_PREFIX' ${global_config_file})rsmdbbackup$(jq -r '.CONFIG_SHORT' ${global_config_file})" >> $GITHUB_ENV
echo "BACKUP_FILE_NAME=rsm-${{ inputs.environment }}-psql-$(date +'%F-%H')" >> $GITHUB_ENV
echo "RUNNER_IP=$(curl ifconfig.me)" >> $GITHUB_ENV
source global_config/${{ inputs.environment }}.sh
echo "BACKUP_STORAGE_GROUP="${AZURE_RESOURCE_PREFIX}rsmdbbackup${CONFIG_SHORT}" >> $GITHUB_ENV
- name: Set postgres environment variables
shell: bash
Expand Down

0 comments on commit 0033972

Please sign in to comment.