Environment from file

We have a use-case where it would be helpful to inject env vars into steps within a pipeline context similar to docker-compose env_file: yaml syntax. The file would be inside the repo (mono-repo) in our case.

Is this possible?