dobi icon indicating copy to clipboard operation
dobi copied to clipboard

Variables with default values don't work for image tags

Open flcdrg opened this issue 5 years ago • 1 comments

Trying to use {env.VERSION:v1.0} (or anything else for the default value) results in an error.

[ERROR] failed to load config from "dobi.yaml": Error at myimage.tags: failed validation: the first tag "v1.0}" may not include an image name

I'm guessing it's trying to validate the tag before the variable is evaluated.

flcdrg avatar Apr 28 '20 07:04 flcdrg

Thank you for the bug report!

One way to fix this might be to have ValidateTags create a call something like this https://github.com/dnephin/dobi/blob/master/execenv/environment.go#L45-L51 on the tag value, before parsing it, to remove the template.

dnephin avatar May 06 '20 01:05 dnephin