Don't warn importing prod.secret.exs if CI=true
This commit is contained in:
parent
2c2d532836
commit
8f6d1ca33e
1 changed files with 10 additions and 5 deletions
|
@ -63,11 +63,16 @@
|
|||
|
||||
# Finally import the config/prod.secret.exs
|
||||
# which should be versioned separately.
|
||||
if File.exists?("./config/prod.secret.exs") do
|
||||
import_config "prod.secret.exs"
|
||||
else
|
||||
"`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`"
|
||||
|> IO.warn([])
|
||||
cond do
|
||||
File.exists?("./config/prod.secret.exs") ->
|
||||
import_config "prod.secret.exs"
|
||||
|
||||
System.get_env("CI") == "true" ->
|
||||
nil
|
||||
|
||||
true ->
|
||||
"`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`"
|
||||
|> IO.warn([])
|
||||
end
|
||||
|
||||
if File.exists?("./config/prod.exported_from_db.secret.exs"),
|
||||
|
|
Loading…
Reference in a new issue