Closed cbosdo closed 5 months ago
Hmm, I'm not really in favor of doing it this way. First, the commit changes all commands and not just the dockerarg build flag, so it may break existing configs. Second, it's too simple: the split can't just check for a \
character, as that might be the last character from an arg.
I prefer to keep the simple split() as is and just to standard url type de-escaping when generating the docker arguments. I.e.:
BuildFlags: dockerargs:KEY1=SPLIT%20VALUE dockerargs:KEY2=VALUE2
Would that also work for you?
Closing as an alternative has been merged
This change allows to use
\
in BuildFlags values. For instance the following configuration will setKEY1
with valueSPLIT VALUE
andKEY2
with valueVALUE2
to docker build.