Skip to content

Commit

Permalink
fix piplein
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 29, 2024
1 parent a04e1c4 commit 0d2f429
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/dashboard_app_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ jobs:
postgres:
image: postgres:16
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: data_handler
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -42,8 +45,11 @@ jobs:
working-directory: ./apps/dashboard_app
run: |
cp .env.dev .env
sed -i 's/DB_HOST=db/DB_HOST=127.0.0.1/' .env
sed -i 's/DB_PORT=5432/DB_PORT=5432/' .env # Update DB_PORT to match the exposed port
sed -i 's/DB_HOST=.*/DB_HOST=127.0.0.1/' .env
sed -i 's/DB_PORT=.*/DB_PORT=5432/' .env
sed -i 's/DB_USER=.*/DB_USER=postgres/' .env
sed -i 's/DB_PASSWORD=.*/DB_PASSWORD=postgres/' .env
sed -i 's/DB_NAME=.*/DB_NAME=data_handler/' .env
- name: Wait for Database to be Ready
run: |
Expand Down

0 comments on commit 0d2f429

Please sign in to comment.