Environment File


Docker-compose, Docker, and Kubernetes all allow for importing env files. Is it possible to do the same for CircleCI 2.0?

The file is in the form shown here: https://docs.docker.com/compose/env-file/


Can you clarify what you mean by this? Do you want to use the .env file for configuring docker or for configuring CircleCI?


Configuring the environment in CircleCI. Instead of having the job spec to have environment: also have env-file which would allow the environment variables to be loaded from a file.


Would this be the same as having a file to bulk-add environment variables into CircleCI? I’m meaning in the “Project Settings” area, instead of having to enter them one-by-one. Yes, we can import from other projects now, which is great; but starting a new project still means importing them one-by-one.

If you mean the same thing as me, then “me too”.


I imagine you could use source for this.

cc @dubaaron.