Skip to content

Commit

Permalink
ci-cd: Connect to PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
DoHyeonCP committed Nov 3, 2024
1 parent 8dc97e9 commit 822687b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
db:
image: postgres:latest
env:
POSTGRES_HOST: db
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
ports:
- 5432:5432
Expand Down Expand Up @@ -66,6 +67,15 @@ jobs:
pip install -r requirements.txt
mkdir -p logs
pip install setuptools
- name: Connet to PostgreSQL
run: |
cd server
python manage.py makemigrations --settings=config.settings.prod
python manage.py migrate --settings=config.settings.prod
env:
POSTGRES_HOST: db
POSTGRES_PORT: 5432

- name: Run Django Tests
run: |
Expand Down

0 comments on commit 822687b

Please sign in to comment.