feat: load every environment from --env-file to workflow (#184)

* feat: load every environment from --env-file to workflow

* fix: pass dotenv's environments through by context

* updates to support --secret-file

Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
jony montanaandCasey Lee authored and GitHub committed 2020-04-17 10:04:40 -07:00
1 parent f6e37a8d67
commit 2f395475b0
10 files changed
+47 -30

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ type stepResult struct {
// GetEnv returns the env for the context
func (rc *RunContext) GetEnv() map[string]string {
if rc.Env == nil {
rc.Env = mergeMaps(rc.Run.Workflow.Env, rc.Run.Job().Env)
rc.Env = mergeMaps(rc.Config.Env, rc.Run.Workflow.Env, rc.Run.Job().Env)
}
return rc.Env
}