1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

Pass settings to services (#4338)

This commit is contained in:
qwerty287 2024-11-09 22:04:27 +02:00 committed by GitHub
parent 5139401b53
commit e13085b69f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,12 +114,9 @@ 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.Environment, environment, "", false, getSecretValue); err != nil {
return nil, err