From 2489e6692d7d40e9f2aeb115f4c9699d7b011dd0 Mon Sep 17 00:00:00 2001 From: Neill Turner Date: Thu, 21 Nov 2024 14:04:20 +0000 Subject: [PATCH] Migrate rsm data and database --- .github/workflows/database-backup-migrate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/database-backup-migrate.yml b/.github/workflows/database-backup-migrate.yml index cfa5f2f1e..81c00294b 100644 --- a/.github/workflows/database-backup-migrate.yml +++ b/.github/workflows/database-backup-migrate.yml @@ -38,7 +38,9 @@ jobs: 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 + resource_prefix=$(jq -r '.resource_prefix' ${tf_vars_file}) + resource_prefix=${resource_prefix//-/} + echo "BACKUP_STORAGE_GROUP=${"${resource_prefix//-/}"}rsmdbbackup${CONFIG_SHORT}" >> $GITHUB_ENV - name: Set postgres environment variables shell: bash