Fix server panic (#3426)

Closes #3424
This commit is contained in:
qwerty287 2024-02-23 16:32:06 +01:00 committed by GitHub
parent 901315625b
commit d59bc64823
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,9 +179,10 @@ func (c *Compiler) Compile(conf *yaml_types.Workflow) (*backend_types.Config, er
cloneSettings["tags"] = "true" cloneSettings["tags"] = "true"
} }
container := &yaml_types.Container{ container := &yaml_types.Container{
Name: defaultCloneName, Name: defaultCloneName,
Image: cloneImage, Image: cloneImage,
Settings: cloneSettings, Settings: cloneSettings,
Environment: map[string]any{},
} }
for k, v := range c.cloneEnv { for k, v := range c.cloneEnv {
container.Environment[k] = v container.Environment[k] = v