Run mix task with ignoring config/runtime.exs only

Do I have an easy option to run a mix task (mix esbuild.install) with ignoring config/runtime.exs?
I mean I know I could delete runtime.exs or use a different MIX_ENV.
But I’m interested if other solutions are available?

Background:
I want to run this in CI where the necessary environment variables for runtime.exs wont be available. Will fail caused by System.fetch_env!/1.

Thanks.

You can wrap some of the lines in runtime.exs with something like if System.get_env(“CI”) == “true” or vice versa. We do this for a few things.

1 Like

Thanks a lot. That would do the trick.