Skip to content

Commit

Permalink
encode passsword
Browse files Browse the repository at this point in the history
  • Loading branch information
bnussman committed Oct 18, 2024
1 parent 647f6fc commit f126f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
uses: actions/checkout@v3

- name: Install PostgreSQL client
run: sudo apt install -y postgresql-client
run: sudo apt install -y postgresql-client jq

- name: Dump database
run: pg_dump postgresql://${{ env.DB_USER }}:$(${{ env.DB_PASSWORD }} | jq -sRr @uri)@${{ env.DB_HOST_PUBLIC }}:5432/beep | gzip > $(date -u +'%Y-%m-%d-%H-%M-%S').sql.gz
run: pg_dump postgresql://${{ env.DB_USER }}:$(echo "${{ env.DB_PASSWORD }}" | jq -sRr @uri)@${{ env.DB_HOST_PUBLIC }}:5432/beep | gzip > $(date -u +'%Y-%m-%d-%H-%M-%S').sql.gz
env:
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
Expand Down

0 comments on commit f126f6e

Please sign in to comment.