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
|
# Finally import the config/prod.secret.exs
|
||||||
# which should be versioned separately.
|
# which should be versioned separately.
|
||||||
if File.exists?("./config/prod.secret.exs") do
|
cond do
|
||||||
import_config "prod.secret.exs"
|
File.exists?("./config/prod.secret.exs") ->
|
||||||
else
|
import_config "prod.secret.exs"
|
||||||
"`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`"
|
|
||||||
|> IO.warn([])
|
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
|
end
|
||||||
|
|
||||||
if File.exists?("./config/prod.exported_from_db.secret.exs"),
|
if File.exists?("./config/prod.exported_from_db.secret.exs"),
|
||||||
|
|
Loading…
Reference in a new issue