mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-06 23:30:29 +00:00
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:
1 parent
f6e37a8d67
commit
2f395475b0
10 files changed
+47
-30
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user