use own pg config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
8fbf8563f3
commit
a9fe91fc23
@ -5,6 +5,10 @@ services:
|
||||
|
||||
variables:
|
||||
MIX_ENV: "test"
|
||||
POSTGRES_DB: eventos_test
|
||||
POSTGRES_USER: ci
|
||||
POSTGRES_PASSWORD: test
|
||||
|
||||
|
||||
cache:
|
||||
key: "$CI_JOB_NAME"
|
||||
|
@ -15,8 +15,8 @@ config :logger,
|
||||
# Configure your database
|
||||
config :eventos, Eventos.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
username: if(System.get_env("CI"), do: "postgres", else: "elixir"),
|
||||
password: if(System.get_env("CI"), do: "", else: "elixir"),
|
||||
username: if(System.get_env("CI"), do: System.get_env("POSTGRES_USER"), else: "elixir"),
|
||||
password: if(System.get_env("CI"), do: System.get_env("POSTGRES_PASSWORD"), else: "elixir"),
|
||||
database: "eventos_test",
|
||||
hostname: if(System.get_env("CI"), do: "postgres", else: "localhost"),
|
||||
pool: Ecto.Adapters.SQL.Sandbox,
|
||||
|
Loading…
Reference in New Issue
Block a user