mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Fix handling of empty strings for default docker volumes (#1209)
This commit is contained in:
parent
b4d89a1cce
commit
70114ed1fd
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ func (e *docker) Load() error {
|
|||
e.volumes = make([]string, 0, len(volumes))
|
||||
// Validate provided volume definitions
|
||||
for _, v := range volumes {
|
||||
if v == "" {
|
||||
continue
|
||||
}
|
||||
parts, err := splitVolumeParts(v)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msgf("invalid volume '%s' provided in WOODPECKER_BACKEND_DOCKER_VOLUMES", v)
|
||||
|
|
Loading…
Reference in a new issue