Skip to content

Commit f18891e

Browse files
committed
ci: install postgresql tools in runner
1 parent 1834ad4 commit f18891e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ jobs:
4848
- name: Set up Docker Buildx
4949
uses: simplex-chat/docker-setup-buildx-action@v3
5050

51+
- name: Install PostgreSQL 15 client tools
52+
if: matrix.os == '22.04'
53+
shell: bash
54+
run: |
55+
# Import the repository signing key
56+
sudo install -d /usr/share/postgresql-common/pgdg
57+
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
58+
# Add the PostgreSQL APT repository
59+
sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
60+
# Update repository and install postgresql tools
61+
sudo apt update
62+
sudo apt -y install postgresql-client-15
63+
5164
- name: Build and cache Docker image
5265
uses: simplex-chat/docker-build-push-action@v6
5366
with:

0 commit comments

Comments
 (0)