fix: make release not crash on missing images
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
dc040a0b38
commit
95e19f03c4
@ -287,6 +287,9 @@ func getImageVersions(recipe recipe.Recipe) map[string]string {
|
|||||||
|
|
||||||
var services = make(map[string]string)
|
var services = make(map[string]string)
|
||||||
for _, service := range recipe.Config.Services {
|
for _, service := range recipe.Config.Services {
|
||||||
|
if (service.Image == "") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
srv := strings.Split(service.Image, ":")
|
srv := strings.Split(service.Image, ":")
|
||||||
services[srv[0]] = srv[1]
|
services[srv[0]] = srv[1]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user