Ignore items from WOODPECKER_ENVIRONMENT only containing a key and no value (#781)

* fix 761

* refactor: rename to match what it does & log ignore case
This commit is contained in:
6543
2022-02-23 08:59:52 +01:00
committed by GitHub
parent dde0678246
commit c4960cdd2c
2 changed files with 10 additions and 3 deletions

View File

@@ -173,7 +173,7 @@ func setupRegistryService(c *cli.Context, s store.Store) model.RegistryService {
}
func setupEnvironService(c *cli.Context, s store.Store) model.EnvironService {
return environments.Filesystem(c.StringSlice("environment"))
return environments.Parse(c.StringSlice("environment"))
}
// setupRemote helper function to setup the remote from the CLI arguments.