mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 19:31:05 +00:00
parent
3bdeb47d8c
commit
f02eaa115e
1 changed files with 8 additions and 0 deletions
|
@ -237,6 +237,14 @@ func (c *Compiler) Compile(conf *yaml_types.Workflow) (*backend_types.Config, er
|
||||||
stepType = backend_types.StepTypePlugin
|
stepType = backend_types.StepTypePlugin
|
||||||
}
|
}
|
||||||
step := c.createProcess(name, container, stepType)
|
step := c.createProcess(name, container, stepType)
|
||||||
|
|
||||||
|
// inject netrc if it's a trusted repo or a trusted clone-plugin
|
||||||
|
if c.trustedPipeline || (container.IsPlugin() && container.IsTrustedCloneImage()) {
|
||||||
|
for k, v := range c.cloneEnv {
|
||||||
|
step.Environment[k] = v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage.Steps = append(stage.Steps, step)
|
stage.Steps = append(stage.Steps, step)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue