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 change 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 fabb830
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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 All @@ -57,12 +57,14 @@ job_defaults: &job_defaults

- image: <<parameters.postgres_image>>
environment:
POSTGRES_DB=datahub
POSTGRES_DB: datahub
POSTGRES_PASSWORD: datahub

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

steps:
- checkout
Expand Down

0 comments on commit fabb830

Please sign in to comment.