Skip to content

Commit 0b868f5

Browse files
initial github action
1 parent 52e2f5c commit 0b868f5

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

.github/workflows/docker.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build Containers
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
docker:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Start docker
15+
run: docker compose up -d --build
16+
env:
17+
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
18+
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
19+
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ services:
88
environment:
99
DB_HOST: db
1010
DB_PORT: 5432
11-
DB_NAME: embedding_db
12-
DB_USER: user
13-
DB_PASSWORD: password
11+
DB_NAME: ${POSTGRES_DB}$
12+
DB_USER: ${POSTGRES_USER}$
13+
DB_PASSWORD: ${POSTGRES_PASSWORD}$
1414

1515
db:
1616
image: pgvector/pgvector:pg17 # prebuilt postgres image with pgvector
1717
restart: always
1818
environment:
19-
POSTGRES_DB: embedding_db
20-
POSTGRES_USER: user
21-
POSTGRES_PASSWORD: password
19+
POSTGRES_DB: ${POSTGRES_DB}$
20+
POSTGRES_USER: ${POSTGRES_USER}$
21+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}$
2222
volumes:
2323
- postgres_data:/var/lib/postgresql/data
2424
ports:

0 commit comments

Comments
 (0)