Skip to content

Commit

Permalink
Merge pull request #960 from DFE-Digital/purge_back_file_after_upload
Browse files Browse the repository at this point in the history
Purge db backup file after upload
  • Loading branch information
johnake authored Jan 19, 2024
2 parents f71ec00 + 8b353e9 commit aebe51d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/actions/database-backup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,12 @@ runs:
az storage blob upload --account-name ${{ env.storage_account }} --container-name database-backup \
--file ${{ env.BACKUP_FILE_NAME }}.tar.gz --name ${{ env.BACKUP_FILE_NAME }}.tar.gz --overwrite \
--account-key '${{ env.STORAGE_CONN_STR }}'
rm ${BACKUP_FILE_NAME}.tar.gz
- name: Disk cleanup
shell: bash
run: |
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /opt/ghc || true
- name: Remove backup file
shell: bash
run: |
rm ${{ env.BACKUP_FILE_NAME }}.sql
rm ${{ env.BACKUP_FILE_NAME }}.tar.gz
- name: Check for Failure
if: ${{ failure() }}
Expand Down

0 comments on commit aebe51d

Please sign in to comment.