mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 09:51:01 +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,12 +114,9 @@ func (c *Compiler) createProcess(container *yaml_types.Container, stepType backe
|
||||||
return secret.Value, nil
|
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 {
|
if err := settings.ParamsToEnv(container.Settings, environment, "PLUGIN_", true, getSecretValue); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if err := settings.ParamsToEnv(container.Environment, environment, "", false, getSecretValue); err != nil {
|
if err := settings.ParamsToEnv(container.Environment, environment, "", false, getSecretValue); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue