mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 01:41:02 +00:00
Pass settings to services (#4338)
This commit is contained in:
parent
5139401b53
commit
e13085b69f
1 changed files with 2 additions and 5 deletions
|
@ -114,11 +114,8 @@ func (c *Compiler) createProcess(container *yaml_types.Container, stepType backe
|
|||
return secret.Value, nil
|
||||
}
|
||||
|
||||
// TODO: why don't we pass secrets to detached steps?
|
||||
if !detached {
|
||||
if err := settings.ParamsToEnv(container.Settings, environment, "PLUGIN_", true, getSecretValue); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := settings.ParamsToEnv(container.Settings, environment, "PLUGIN_", true, getSecretValue); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := settings.ParamsToEnv(container.Environment, environment, "", false, getSecretValue); err != nil {
|
||||
|
|
Loading…
Reference in a new issue