Skip to content

Commit

Permalink
test run with qa restore only
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcVelia committed Nov 27, 2024
1 parent 46523c3 commit b07ecdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/database-restore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: |
az storage blob upload --container-name database-backup \
--file ${PROD_BACKUP}.tar.gz --name ${PROD_BACKUP}.tar.gz \
--connection-string '${{ env.STORAGE_CONN_STR }}'
--connection-string '${{ env.STORAGE_CONN_STR }}' --overwrite
- name: Set env variable
run: echo "SANITISED_FILE_NAME=publish_sanitised_$(date +"%F")" >> $GITHUB_ENV
Expand All @@ -93,7 +93,7 @@ jobs:
rm ${{ env.PROD_BACKUP }}
echo "::group::Backup Sanitised Database"
pg_dump --encoding utf8 --clean --no-owner --if-exists -d ${DATABASE_NAME} -f ${SANITISED_FILE_NAME}.sql.gz
pg_dump --compress=1 --encoding utf8 --clean --no-owner --if-exists -d ${DATABASE_NAME} -f ${SANITISED_FILE_NAME}.sql.gz
echo "::endgroup::"
env:
DATABASE_NAME: teacher_training_api
Expand All @@ -117,7 +117,7 @@ jobs:
strategy:
fail-fast: false
matrix:
environment: [qa, staging]
environment: [qa]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit b07ecdf

Please sign in to comment.