Skip to content

Commit 17e57a2

Browse files
committed
deploy/fixed bug with db url
1 parent 05378ca commit 17e57a2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/lab3.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
- name: Prepare Secret
3737
env:
3838
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
39+
DB_USER: "postgres"
40+
DB_NAME: "service_station"
3941
JWT_SECRET: ${{ secrets.JWT_SECRET }}
4042
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
4143
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}

k8s/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ data:
77
DB_HOST: "db-service"
88
DB_PORT: "5432"
99
DB_NAME: "service_station"
10+
DB_PASSWORD: "${DB_PASSWORD}"
11+
DATABASE_URL: "postgresql://${DB_USER}:${DB_PASSWORD}@db-service:5432/${DB_NAME}?schema=public"
1012
PORT: "8080"
1113
JWT_EXPIRE: "1d"
1214
GOOGLE_CALLBACK_URL: "http://localhost:8080/api/auth/google/callback"

0 commit comments

Comments
 (0)