Update target_image_config.go

This commit is contained in:
Adrien Delorme 2020-03-16 14:53:06 +01:00
parent 5c91c7aae6
commit ac7cc8c5ac
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ type TargetImageConfig struct {
func (c *TargetImageConfig) Prepare(ctx *interpolate.Context) []error {
var errs []error
errs = append(errs, c.ImageTag.CopyOn(c.ImageTags)...)
if c.ImageName == "" {
errs = append(errs, fmt.Errorf("An image_name must be specified"))
}