Skip to content

Commit

Permalink
Fix Postgres tools version mismatch (#4159)
Browse files Browse the repository at this point in the history
* fix psql version

* test

* test
  • Loading branch information
sorja authored Nov 28, 2024
1 parent a4c4272 commit 1f623cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/heroku-db-partial-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,22 @@ jobs:
- name: Install PostgreSQL client and GPG
run: |
sudo apt-get update
sudo apt-get install -y postgresql-client gnupg
sudo apt-get install -y curl gnupg2
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /usr/share/keyrings/postgresql-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/postgresql-keyring.gpg] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql.list
sudo apt-get update
sudo apt-get install -y postgresql-client-15
- name: Verify PostgreSQL version
run: pg_dump --version

- name: Create Custom Database Backup
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: ${{ github.event.inputs.environment == 'production' && secrets.HEROKU_APP_NAME_PRODUCTION || secrets.HEROKU_APP_NAME_DEVELOPMENT }}
BACKUP_DIR: ./backups
run: |
export PATH="/usr/lib/postgresql/15/bin:$PATH"
mkdir -p $BACKUP_DIR
./src/tools/heroku/partial-backup.sh
Expand Down

0 comments on commit 1f623cf

Please sign in to comment.