Skip to content

Commit

Permalink
Delete unencrypted file right after encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jan 25, 2025
1 parent 502e065 commit c0fdddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
run: |
/usr/lib/postgresql/17/bin/pg_dump ${{ secrets.DATABASE_URL }} | gzip > "tv-tracker-${TIMESTAMP}.sql.gz"
cat tv-tracker-${TIMESTAMP}.sql.gz | gpg --passphrase "${{ secrets.ENCRYPTION_STRING }}" --batch --yes -c -o tv-tracker-${TIMESTAMP}.sql.gz.gpg
rm tv-tracker-${TIMESTAMP}.sql.gz
- name: ⌨️ Configure AWS credentials from Action OIDC
uses: aws-actions/configure-aws-credentials@v4
Expand Down

0 comments on commit c0fdddf

Please sign in to comment.