Continuous Integration
GitLab CI
Deploy
- Overview
- ParadeDB Self-Hosted
- ParadeDB BYOC
- ParadeDB Enterprise
- Upgrading ParadeDB
- Installing Third Party Extensions
- Continuous Integration
Continuous Integration
GitLab CI
Sample GitLab CI Workflow
paradedb-in-gitlab-ci:
# The list of available tags can be found at https://hub.docker.com/r/paradedb/paradedb/tags
image: paradedb/paradedb:latest
services:
- postgres
variables:
POSTGRES_USER: testuser
POSTGRES_DB: testdb
POSTGRES_HOST_AUTH_METHOD: trust
script:
- psql -h "postgres" -U testuser -d testdb -c "CALL paradedb.create_bm25_test_table(schema_name => 'public', table_name => 'mock_items');"
- psql -h "postgres" -U testuser -d testdb -c "SELECT description, rating, category FROM mock_items LIMIT 3;"
- psql -h "postgres" -U testuser -d testdb -c "CREATE INDEX search_idx ON mock_items USING bm25 (id, description, category, rating, in_stock, created_at, metadata, weight_range) WITH (key_field='id');"
- psql -h "postgres" -U testuser -d testdb -c "SELECT description, rating, category FROM mock_items WHERE description @@@ 'shoes' OR category @@@ 'footwear' AND rating @@@ '>2' ORDER BY description LIMIT 5;"
Was this page helpful?
On this page