Don't warn importing prod.secret.exs if CI=true

This commit is contained in:
Alex Gleason 2022-08-29 21:33:25 -05:00
parent 2c2d532836
commit 8f6d1ca33e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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"),