Skip to content

Implemented loading multiple env files. Added logging.#27

Merged
coenm merged 1 commit intomainfrom
feature/multiple-env-files
Oct 4, 2022
Merged

Implemented loading multiple env files. Added logging.#27
coenm merged 1 commit intomainfrom
feature/multiple-env-files

Conversation

@coenm
Copy link
Copy Markdown
Owner

@coenm coenm commented Oct 3, 2022

First environment file is leading.

ie.

repository-specific-env-files:
- filename: '{var.RepoEnvironmentFile}'
  when: true
- filename: '%MY_SECRET_PATH%{backslash}github.env'
  when: '{empty}{StringContains({Repository.RemoteUrls}, "github")}'

will load all environment variables from {var.RepoEnvironmentFile} and after that all environment variables where the key was not already set by {var.RepoEnvironmentFile} from '%MY_SECRET_PATH%{backslash}github.env'

@coenm coenm added the enhancement 🚀 Enhancements label Oct 3, 2022
@coenm coenm merged commit 1066378 into main Oct 4, 2022
@coenm coenm deleted the feature/multiple-env-files branch October 4, 2022 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🚀 Enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant