Environment File


#1

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/


#2

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


#3

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.


#4

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”.


#5

I imagine you could use source for this.

cc @dubaaron.


#6