mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 21:31: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))
|
e.volumes = make([]string, 0, len(volumes))
|
||||||
// Validate provided volume definitions
|
// Validate provided volume definitions
|
||||||
for _, v := range volumes {
|
for _, v := range volumes {
|
||||||
|
if v == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
parts, err := splitVolumeParts(v)
|
parts, err := splitVolumeParts(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msgf("invalid volume '%s' provided in WOODPECKER_BACKEND_DOCKER_VOLUMES", v)
|
log.Error().Err(err).Msgf("invalid volume '%s' provided in WOODPECKER_BACKEND_DOCKER_VOLUMES", v)
|
||||||
|
|
Loading…
Reference in a new issue