mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 12:21:03 +00:00
commit
61a0018f35
1 changed files with 9 additions and 0 deletions
|
@ -87,6 +87,15 @@ func (c *Compiler) Compile(conf *yaml.Config) *backend.Config {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// create secrets for mask
|
||||||
|
for _, sec := range c.secrets {
|
||||||
|
config.Secrets = append(config.Secrets, &backend.Secret{
|
||||||
|
Name: sec.Name,
|
||||||
|
Value: sec.Value,
|
||||||
|
Mask: true,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// overrides the default workspace paths when specified
|
// overrides the default workspace paths when specified
|
||||||
// in the YAML file.
|
// in the YAML file.
|
||||||
if len(conf.Workspace.Base) != 0 {
|
if len(conf.Workspace.Base) != 0 {
|
||||||
|
|
Loading…
Reference in a new issue