I have a multi-repo setup and each of my env0 templates are linked to different git repositories, yet I'd like to share my env0.yml between them. How can I do that?
This can be done by combining git submodules and symlinks.
- Push a git repository holding your shared env0.yml
- In each of your repositories, add that env0.yml repository as git submodule, i.e: git submodule add https://github.com/my-org/my-env0-yml
- In each of your repositories create an env0.yml symlink in the root of that repository that points to the shared env0.yml in the submodule directory ln -s my-env0-yml/env0.yml env0.yml