Skip to content

Commit 4eefa52

Browse files
committed
Clean up local-ci
1 parent f2e58ec commit 4eefa52

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/test-build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
postgres:
4040
image: postgres
4141
env:
42-
POSTGRES_PASSWORD: postgres
42+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
4343
options: >-
4444
--health-cmd pg_isready
4545
--health-interval 10s
@@ -66,7 +66,7 @@ jobs:
6666
postgres:
6767
image: postgres
6868
env:
69-
POSTGRES_PASSWORD: postgres
69+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
7070
options: >-
7171
--health-cmd pg_isready
7272
--health-interval 10s
@@ -93,7 +93,7 @@ jobs:
9393
postgres:
9494
image: postgres
9595
env:
96-
POSTGRES_PASSWORD: postgres
96+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
9797
options: >-
9898
--health-cmd pg_isready
9999
--health-interval 10s
@@ -122,7 +122,7 @@ jobs:
122122
postgres:
123123
image: postgres
124124
env:
125-
POSTGRES_PASSWORD: postgres
125+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
126126
options: >-
127127
--health-cmd pg_isready
128128
--health-interval 10s
@@ -150,7 +150,7 @@ jobs:
150150
image: postgres
151151

152152
env:
153-
POSTGRES_PASSWORD: postgres
153+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
154154
options: >-
155155
--health-cmd pg_isready
156156
--health-interval 10s

api/base/settings/local-ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ENABLE_VARNISH = True
66
ENABLE_ESI = False
77

8-
OSF_DB_PASSWORD = 'postgres'
8+
OSF_DB_PASSWORD = os.environ.get('OSF_DB_PASSWORD')
99

1010
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
1111

website/settings/local-ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import os
1111

1212
DB_PORT = 5432
13-
OSF_DB_PASSWORD = 'postgres'
13+
OSF_DB_PASSWORD = os.environ.get('OSF_DB_PASSWORD')
1414

1515
DEV_MODE = True
1616
DEBUG_MODE = True # Sets app to debug mode, turns off template caching, etc.

0 commit comments

Comments
 (0)