diff --git a/.github/workflows/database-restore.yml b/.github/workflows/database-restore.yml index 48c82692b9..d7274fae72 100644 --- a/.github/workflows/database-restore.yml +++ b/.github/workflows/database-restore.yml @@ -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 @@ -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 @@ -117,7 +117,7 @@ jobs: strategy: fail-fast: false matrix: - environment: [qa, staging] + environment: [qa] steps: - name: Checkout uses: actions/checkout@v4