Skip to content

Commit 842f128

Browse files
authored
feat: switch to PGVector 16 as main postgres db (#125)
* feat: switch to PGVector 16 as main postgres db * Change branch for testing * Add shell property * Fix install command * Update build-node-python.yml
1 parent c2c7cb6 commit 842f128

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/actions/build-node-python/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ runs:
119119
pip --version
120120
uv --version
121121
shell: bash
122+
- name: Install pgvector
123+
if: inputs.enable_python == 'true'
124+
run: |
125+
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
126+
sudo apt-get install postgresql-16-pgvector -y
127+
shell: bash
122128
# General
123129
- name: Git config
124130
if: inputs.github_ro_token != ''

.github/workflows/build-node-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201

202202
services:
203203
postgres:
204-
image: postgres:14
204+
image: pgvector/pgvector:pg16
205205
env:
206206
POSTGRES_USER: admin
207207
POSTGRES_PASSWORD: admin
@@ -340,7 +340,7 @@ jobs:
340340

341341
services:
342342
postgres:
343-
image: postgres:14
343+
image: pgvector/pgvector:pg16
344344
env:
345345
POSTGRES_USER: admin
346346
POSTGRES_PASSWORD: admin

0 commit comments

Comments
 (0)