Skip to content

Commit

Permalink
Set PostgreSQL password in CircleCI build
Browse files Browse the repository at this point in the history
The `postgres` Docker image now requires a password to be set. This sets a password in the CircleCI build to meet that requirement.

See docker-library/postgres#681 for more information.
  • Loading branch information
reupen committed Feb 17, 2020
1 parent b69d7dd commit 982afe0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ job_defaults: &job_defaults
ADMIN_OAUTH2_LOGOUT_PATH: '/o/logout'
ACTIVITY_STREAM_ACCESS_KEY_ID: some-id
ACTIVITY_STREAM_SECRET_ACCESS_KEY: some-secret
DATABASE_URL: postgresql://postgres@localhost/datahub
MI_DATABASE_URL: postgresql://postgres@mi-postgres/mi
DATABASE_URL: postgresql://postgres:datahub@localhost/datahub
MI_DATABASE_URL: postgresql://postgres:datahub@mi-postgres/mi
DEBUG: 'True'
DJANGO_SECRET_KEY: changeme
DJANGO_SETTINGS_MODULE: config.settings.local
Expand Down Expand Up @@ -58,11 +58,13 @@ job_defaults: &job_defaults
- image: <<parameters.postgres_image>>
environment:
POSTGRES_DB=datahub
POSTGRES_PASSWORD=datahub

- image: <<parameters.mi_postgres_image>>
name: mi-postgres
environment:
POSTGRES_DB=mi
POSTGRES_PASSWORD=datahub

steps:
- checkout
Expand Down

0 comments on commit 982afe0

Please sign in to comment.