Skip to content

Commit

Permalink
change base image
Browse files Browse the repository at this point in the history
  • Loading branch information
aarushik93 committed Apr 19, 2024
1 parent 1803d0c commit 3610feb
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ jobs:
build-and-test:
runs-on: ubuntu-latest

# services:
# postgres:
# image: ankane/pgvector:latest
# env:
# POSTGRES_USER: ${{ secrets.DB_USER }}
# PGUSER: ${{ secrets.DB_USER }}
# POSTGRES_PASSWORD: ${{ secrets.DB_PASS }}
# POSTGRES_DB: ${{ secrets.DB_NAME }}
# ports:
# - 5432:5432
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: ${{ secrets.DB_USER }}
PGUSER: ${{ secrets.DB_USER }}
POSTGRES_PASSWORD: ${{ secrets.DB_PASS }}
POSTGRES_DB: ${{ secrets.DB_NAME }}
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
Expand All @@ -51,24 +51,24 @@ jobs:
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'

- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Spin up DB
run: |
docker-compose -f docker-compose.yml up -d --build
env:
DB_USER: ${{ secrets.DB_USER }}
DB_PASS: ${{ secrets.DB_USER }}
DB_NAME: ${{ secrets.DB_PASS }}
POSTGRES_DB: ${{ secrets.DB_NAME }}

- name: Wait for PostgreSQL
uses: MaximeGoyette/wait-for-it-action@master
with:
host: localhost
port: 5432
timeout: 30
# - name: Set up Docker
# uses: docker/setup-buildx-action@v2
#
# - name: Spin up DB
# run: |
# docker-compose -f docker-compose.yml up -d --build
# env:
# DB_USER: ${{ secrets.DB_USER }}
# DB_PASS: ${{ secrets.DB_USER }}
# DB_NAME: ${{ secrets.DB_PASS }}
# POSTGRES_DB: ${{ secrets.DB_NAME }}
#
# - name: Wait for PostgreSQL
# uses: MaximeGoyette/wait-for-it-action@master
# with:
# host: localhost
# port: 5432
# timeout: 30

- name: Generate Prisma Client
run: poetry run prisma generate
Expand Down

0 comments on commit 3610feb

Please sign in to comment.